Struct dsp::sample::types::U20 []

pub struct U20(_);

Methods

impl U20

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

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

Returns None if val is out of range.

fn new_unchecked(s: i32) -> U20

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 U20

fn default() -> U20

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

impl Ord for U20

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

impl PartialOrd<U20> for U20

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

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

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

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

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

impl Eq for U20

impl PartialEq<U20> for U20

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

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

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

This method tests for !=.

impl Debug for U20

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

Formats the value using the given formatter.

impl Clone for U20

fn clone(&self) -> U20

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 U20

impl From<i32> for U20

fn from(val: i32) -> U20

impl Add<U20> for U20

type Output = U20

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

impl Sub<U20> for U20

type Output = U20

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

impl Mul<U20> for U20

type Output = U20

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

impl Div<U20> for U20

type Output = U20

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

impl Not for U20

type Output = U20

fn not(self) -> U20

impl Rem<U20> for U20

type Output = U20

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

impl Shl<U20> for U20

type Output = U20

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

impl Shr<U20> for U20

type Output = U20

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

impl BitAnd<U20> for U20

type Output = U20

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

impl BitOr<U20> for U20

type Output = U20

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

impl BitXor<U20> for U20

type Output = U20

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

impl From<u8> for U20

fn from(other: u8) -> U20

impl From<u16> for U20

fn from(other: u16) -> U20