Struct dsp::sample::types::I11 []

pub struct I11(_);

Methods

impl I11

fn new(val: i16) -> Option<I11>

Construct a new sample if the given value is within range.

Returns None if val is out of range.

fn new_unchecked(s: i16) -> I11

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 I11

fn default() -> I11

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

impl Ord for I11

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

impl PartialOrd<I11> for I11

fn partial_cmp(&self, __arg_0: &I11) -> Option<Ordering>

fn lt(&self, __arg_0: &I11) -> bool

fn le(&self, __arg_0: &I11) -> bool

fn gt(&self, __arg_0: &I11) -> bool

fn ge(&self, __arg_0: &I11) -> bool

impl Eq for I11

impl PartialEq<I11> for I11

fn eq(&self, __arg_0: &I11) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &I11) -> bool

This method tests for !=.

impl Debug for I11

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Clone for I11

fn clone(&self) -> I11

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 I11

impl From<i16> for I11

fn from(val: i16) -> I11

impl Add<I11> for I11

type Output = I11

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

impl Sub<I11> for I11

type Output = I11

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

impl Mul<I11> for I11

type Output = I11

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

impl Div<I11> for I11

type Output = I11

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

impl Not for I11

type Output = I11

fn not(self) -> I11

impl Rem<I11> for I11

type Output = I11

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

impl Shl<I11> for I11

type Output = I11

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

impl Shr<I11> for I11

type Output = I11

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

impl BitAnd<I11> for I11

type Output = I11

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

impl BitOr<I11> for I11

type Output = I11

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

impl BitXor<I11> for I11

type Output = I11

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

impl From<i8> for I11

fn from(other: i8) -> I11

impl From<u8> for I11

fn from(other: u8) -> I11

impl Neg for I11

type Output = I11

fn neg(self) -> I11