Struct dsp::sample::U48 []

pub struct U48(_);

Methods

impl U48

fn new(val: i64) -> Option<U48>

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

Returns None if val is out of range.

fn new_unchecked(s: i64) -> U48

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

Return the internal value used to represent the sample type.

Trait Implementations

impl Default for U48

fn default() -> U48

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

impl Ord for U48

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

impl PartialOrd<U48> for U48

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

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

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

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

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

impl Eq for U48

impl PartialEq<U48> for U48

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

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

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

This method tests for !=.

impl Debug for U48

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

Formats the value using the given formatter.

impl Clone for U48

fn clone(&self) -> U48

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 U48

impl From<i64> for U48

fn from(val: i64) -> U48

impl Add<U48> for U48

type Output = U48

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

impl Sub<U48> for U48

type Output = U48

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

impl Mul<U48> for U48

type Output = U48

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

impl Div<U48> for U48

type Output = U48

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

impl Not for U48

type Output = U48

fn not(self) -> U48

impl Rem<U48> for U48

type Output = U48

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

impl Shl<U48> for U48

type Output = U48

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

impl Shr<U48> for U48

type Output = U48

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

impl BitAnd<U48> for U48

type Output = U48

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

impl BitOr<U48> for U48

type Output = U48

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

impl BitXor<U48> for U48

type Output = U48

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

impl From<u8> for U48

fn from(other: u8) -> U48

impl From<u16> for U48

fn from(other: u16) -> U48

impl From<U20> for U48

fn from(other: U20) -> U48

impl From<U24> for U48

fn from(other: U24) -> U48

impl From<u32> for U48

fn from(other: u32) -> U48

impl FromSample<i8> for U48

fn from_sample_(s: i8) -> U48

impl FromSample<i16> for U48

fn from_sample_(s: i16) -> U48

impl FromSample<I24> for U48

fn from_sample_(s: I24) -> U48

impl FromSample<i32> for U48

fn from_sample_(s: i32) -> U48

impl FromSample<I48> for U48

fn from_sample_(s: I48) -> U48

impl FromSample<i64> for U48

fn from_sample_(s: i64) -> U48

impl FromSample<u8> for U48

fn from_sample_(s: u8) -> U48

impl FromSample<u16> for U48

fn from_sample_(s: u16) -> U48

impl FromSample<U24> for U48

fn from_sample_(s: U24) -> U48

impl FromSample<u32> for U48

fn from_sample_(s: u32) -> U48

impl FromSample<u64> for U48

fn from_sample_(s: u64) -> U48

impl FromSample<f32> for U48

fn from_sample_(s: f32) -> U48

impl FromSample<f64> for U48

fn from_sample_(s: f64) -> U48

impl Sample for U48

fn equilibrium() -> U48

The equilibrium value for the wave that this Sample type represents. This is normally the value that is equal distance from both the min and max ranges of the sample. Read more

fn to_sample<S>(self) -> S where Self: ToSample<S>

Convert self to any type that implements FromSample.

fn from_sample<S>(s: S) -> Self where Self: FromSample<S>

Create a Self from any type that implements ToSample.