Struct dasp_sample::types::i11::I11
source · pub struct I11(/* private fields */);
Implementations§
source§impl I11
impl I11
sourcepub fn new(val: i16) -> Option<Self>
pub fn new(val: i16) -> Option<Self>
Construct a new sample if the given value is within range.
Returns None
if val
is out of range.
sourcepub fn new_unchecked(s: i16) -> Self
pub fn new_unchecked(s: i16) -> Self
Constructs a new sample without checking for overflowing.
This should only be used if the user can guarantee the sample will be within range and they require the extra performance.
If this function is used, the sample crate can’t guarantee that the returned sample or any interacting samples will remain within their MIN and MAX bounds.
Trait Implementations§
source§impl Ord for I11
impl Ord for I11
source§impl PartialOrd for I11
impl PartialOrd for I11
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for I11
impl Eq for I11
impl StructuralEq for I11
impl StructuralPartialEq for I11
Auto Trait Implementations§
impl RefUnwindSafe for I11
impl Send for I11
impl Sync for I11
impl Unpin for I11
impl UnwindSafe for I11
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more