Struct dasp_sample::types::u11::U11
source · pub struct U11(/* private fields */);
Implementations§
source§impl U11
impl U11
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 U11
impl Ord for U11
source§impl PartialOrd for U11
impl PartialOrd for U11
impl Copy for U11
impl Eq for U11
impl StructuralPartialEq for U11
Auto Trait Implementations§
impl Freeze for U11
impl RefUnwindSafe for U11
impl Send for U11
impl Sync for U11
impl Unpin for U11
impl UnwindSafe for U11
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)