Struct dsp::sample::types::I20 []

pub struct I20(_);

Methods

impl I20

fn new(val: i32) -> Option<I20>

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

Returns None if val is out of range.

fn new_unchecked(s: i32) -> I20

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) -> i32

Return the internal value used to represent the sample type.

Trait Implementations

impl Default for I20

fn default() -> I20

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

impl Ord for I20

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

impl PartialOrd<I20> for I20

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

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

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

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

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

impl Eq for I20

impl PartialEq<I20> for I20

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

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

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

This method tests for !=.

impl Debug for I20

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

Formats the value using the given formatter.

impl Clone for I20

fn clone(&self) -> I20

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 I20

impl From<i32> for I20

fn from(val: i32) -> I20

impl Add<I20> for I20

type Output = I20

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

impl Sub<I20> for I20

type Output = I20

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

impl Mul<I20> for I20

type Output = I20

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

impl Div<I20> for I20

type Output = I20

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

impl Not for I20

type Output = I20

fn not(self) -> I20

impl Rem<I20> for I20

type Output = I20

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

impl Shl<I20> for I20

type Output = I20

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

impl Shr<I20> for I20

type Output = I20

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

impl BitAnd<I20> for I20

type Output = I20

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

impl BitOr<I20> for I20

type Output = I20

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

impl BitXor<I20> for I20

type Output = I20

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

impl From<i8> for I20

fn from(other: i8) -> I20

impl From<I11> for I20

fn from(other: I11) -> I20

impl From<i16> for I20

fn from(other: i16) -> I20

impl From<u8> for I20

fn from(other: u8) -> I20

impl From<U11> for I20

fn from(other: U11) -> I20

impl From<u16> for I20

fn from(other: u16) -> I20