Struct dsp::sample::types::U11
[−]
pub struct U11(_);
Methods
impl U11
fn new(val: i16) -> Option<U11>
Construct a new sample if the given value is within range.
Returns None
if val
is out of range.
fn new_unchecked(s: i16) -> U11
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.
fn inner(self) -> i16
Return the internal value used to represent the sample type.
Trait Implementations
impl Default for U11
impl Ord for U11
impl PartialOrd<U11> for U11
fn partial_cmp(&self, __arg_0: &U11) -> Option<Ordering>
fn lt(&self, __arg_0: &U11) -> bool
fn le(&self, __arg_0: &U11) -> bool
fn gt(&self, __arg_0: &U11) -> bool
fn ge(&self, __arg_0: &U11) -> bool
impl Eq for U11
impl PartialEq<U11> for U11
fn eq(&self, __arg_0: &U11) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &U11) -> bool
This method tests for !=
.
impl Debug for U11
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for U11
fn clone(&self) -> U11
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more