Struct sample::types::i11::I11 [−][src]
pub struct I11(_);
Methods
impl I11
[src]
impl I11
pub fn new(val: i16) -> Option<Self>
[src]
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.
pub fn new_unchecked(s: i16) -> Self
[src]
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.
pub fn inner(self) -> i16
[src]
pub fn inner(self) -> i16
Return the internal value used to represent the sample type.
Trait Implementations
impl Copy for I11
[src]
impl Copy for I11
impl Clone for I11
[src]
impl Clone for I11
fn clone(&self) -> I11
[src]
fn clone(&self) -> I11
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for I11
[src]
impl Debug for I11
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for I11
[src]
impl PartialEq for I11
fn eq(&self, other: &I11) -> bool
[src]
fn eq(&self, other: &I11) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &I11) -> bool
[src]
fn ne(&self, other: &I11) -> bool
This method tests for !=
.
impl Eq for I11
[src]
impl Eq for I11
impl PartialOrd for I11
[src]
impl PartialOrd for I11
fn partial_cmp(&self, other: &I11) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &I11) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &I11) -> bool
[src]
fn lt(&self, other: &I11) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &I11) -> bool
[src]
fn le(&self, other: &I11) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &I11) -> bool
[src]
fn gt(&self, other: &I11) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &I11) -> bool
[src]
fn ge(&self, other: &I11) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for I11
[src]
impl Ord for I11
fn cmp(&self, other: &I11) -> Ordering
[src]
fn cmp(&self, other: &I11) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Default for I11
[src]
impl Default for I11
impl From<i16> for I11
[src]
impl From<i16> for I11
impl Add<I11> for I11
[src]
impl Add<I11> for I11
type Output = I11
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
fn add(self, other: Self) -> Self
Performs the +
operation.
impl Sub<I11> for I11
[src]
impl Sub<I11> for I11
type Output = I11
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
fn sub(self, other: Self) -> Self
Performs the -
operation.
impl Mul<I11> for I11
[src]
impl Mul<I11> for I11
type Output = I11
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
fn mul(self, other: Self) -> Self
Performs the *
operation.
impl Div<I11> for I11
[src]
impl Div<I11> for I11
type Output = I11
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
fn div(self, other: Self) -> Self
Performs the /
operation.
impl Not for I11
[src]
impl Not for I11
type Output = I11
The resulting type after applying the !
operator.
fn not(self) -> I11
[src]
fn not(self) -> I11
Performs the unary !
operation.
impl Rem<I11> for I11
[src]
impl Rem<I11> for I11
type Output = I11
The resulting type after applying the %
operator.
fn rem(self, other: Self) -> Self
[src]
fn rem(self, other: Self) -> Self
Performs the %
operation.
impl Shl<I11> for I11
[src]
impl Shl<I11> for I11
type Output = I11
The resulting type after applying the <<
operator.
fn shl(self, other: Self) -> Self
[src]
fn shl(self, other: Self) -> Self
Performs the <<
operation.
impl Shr<I11> for I11
[src]
impl Shr<I11> for I11
type Output = I11
The resulting type after applying the >>
operator.
fn shr(self, other: Self) -> Self
[src]
fn shr(self, other: Self) -> Self
Performs the >>
operation.
impl BitAnd<I11> for I11
[src]
impl BitAnd<I11> for I11
type Output = I11
The resulting type after applying the &
operator.
fn bitand(self, other: Self) -> Self
[src]
fn bitand(self, other: Self) -> Self
Performs the &
operation.
impl BitOr<I11> for I11
[src]
impl BitOr<I11> for I11
type Output = I11
The resulting type after applying the |
operator.
fn bitor(self, other: Self) -> Self
[src]
fn bitor(self, other: Self) -> Self
Performs the |
operation.
impl BitXor<I11> for I11
[src]
impl BitXor<I11> for I11
type Output = I11
The resulting type after applying the ^
operator.
fn bitxor(self, other: Self) -> Self
[src]
fn bitxor(self, other: Self) -> Self
Performs the ^
operation.
impl From<i8> for I11
[src]
impl From<i8> for I11
impl From<u8> for I11
[src]
impl From<u8> for I11
impl Neg for I11
[src]
impl Neg for I11
type Output = I11
The resulting type after applying the -
operator.
fn neg(self) -> I11
[src]
fn neg(self) -> I11
Performs the unary -
operation.
impl From<I11> for I20
[src]
impl From<I11> for I20