Struct sample::types::u11::U11
[−]
[src]
pub struct U11(_);
Methods
impl U11
[src]
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.
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.
fn inner(self) -> i16
[−]
Return the internal value used to represent the sample type.
Trait Implementations
impl From<i16> for U11
[src]
impl Add<U11> for U11
[src]
type Output = U11
The resulting type after applying the +
operator
fn add(self, other: Self) -> Self
[−]
The method for the +
operator
impl Sub<U11> for U11
[src]
type Output = U11
The resulting type after applying the -
operator
fn sub(self, other: Self) -> Self
[−]
The method for the -
operator
impl Mul<U11> for U11
[src]
type Output = U11
The resulting type after applying the *
operator
fn mul(self, other: Self) -> Self
[−]
The method for the *
operator
impl Div<U11> for U11
[src]
type Output = U11
The resulting type after applying the /
operator
fn div(self, other: Self) -> Self
[−]
The method for the /
operator
impl Not for U11
[src]
type Output = U11
The resulting type after applying the !
operator
fn not(self) -> U11
[−]
The method for the unary !
operator
impl Rem<U11> for U11
[src]
type Output = U11
The resulting type after applying the %
operator
fn rem(self, other: Self) -> Self
[−]
The method for the %
operator
impl Shl<U11> for U11
[src]
type Output = U11
The resulting type after applying the <<
operator
fn shl(self, other: Self) -> Self
[−]
The method for the <<
operator
impl Shr<U11> for U11
[src]
type Output = U11
The resulting type after applying the >>
operator
fn shr(self, other: Self) -> Self
[−]
The method for the >>
operator
impl BitAnd<U11> for U11
[src]
type Output = U11
The resulting type after applying the &
operator
fn bitand(self, other: Self) -> Self
[−]
The method for the &
operator
impl BitOr<U11> for U11
[src]
type Output = U11
The resulting type after applying the |
operator
fn bitor(self, other: Self) -> Self
[−]
The method for the |
operator
impl BitXor<U11> for U11
[src]
type Output = U11
The resulting type after applying the ^
operator
fn bitxor(self, other: Self) -> Self
[−]
The method for the ^
operator
impl From<u8> for U11
[src]
impl Neg for U11
[src]
type Output = U11
The resulting type after applying the -
operator
fn neg(self) -> U11
[−]
The method for the unary -
operator
Derived Implementations
impl Default for U11
[src]
impl Ord for U11
[src]
fn cmp(&self, __arg_0: &U11) -> Ordering
[−]
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for U11
[src]
fn partial_cmp(&self, __arg_0: &U11) -> Option<Ordering>
[−]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &U11) -> bool
[−]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &U11) -> bool
[−]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &U11) -> bool
[−]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &U11) -> bool
[−]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for U11
[src]
impl PartialEq for U11
[src]
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
[src]
impl Clone for U11
[src]
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