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

fn default() -> U11

Returns the "default value" for a type. Read more

impl Ord for U11

fn cmp(&self, __arg_0: &U11) -> Ordering

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

impl Copy for U11

impl From<i16> for U11

fn from(val: i16) -> U11

impl Add<U11> for U11

type Output = U11

fn add(self, other: U11) -> U11

impl Sub<U11> for U11

type Output = U11

fn sub(self, other: U11) -> U11

impl Mul<U11> for U11

type Output = U11

fn mul(self, other: U11) -> U11

impl Div<U11> for U11

type Output = U11

fn div(self, other: U11) -> U11

impl Not for U11

type Output = U11

fn not(self) -> U11

impl Rem<U11> for U11

type Output = U11

fn rem(self, other: U11) -> U11

impl Shl<U11> for U11

type Output = U11

fn shl(self, other: U11) -> U11

impl Shr<U11> for U11

type Output = U11

fn shr(self, other: U11) -> U11

impl BitAnd<U11> for U11

type Output = U11

fn bitand(self, other: U11) -> U11

impl BitOr<U11> for U11

type Output = U11

fn bitor(self, other: U11) -> U11

impl BitXor<U11> for U11

type Output = U11

fn bitxor(self, other: U11) -> U11

impl From<u8> for U11

fn from(other: u8) -> U11

impl Neg for U11

type Output = U11

fn neg(self) -> U11