Struct dsp::sample::I48 []

pub struct I48(_);

Methods

impl I48

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

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

Returns None if val is out of range.

fn new_unchecked(s: i64) -> I48

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 I48

fn default() -> I48

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

impl Ord for I48

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

impl PartialOrd<I48> for I48

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

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

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

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

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

impl Eq for I48

impl PartialEq<I48> for I48

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

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

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

This method tests for !=.

impl Debug for I48

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

Formats the value using the given formatter.

impl Clone for I48

fn clone(&self) -> I48

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 I48

impl From<i64> for I48

fn from(val: i64) -> I48

impl Add<I48> for I48

type Output = I48

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

impl Sub<I48> for I48

type Output = I48

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

impl Mul<I48> for I48

type Output = I48

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

impl Div<I48> for I48

type Output = I48

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

impl Not for I48

type Output = I48

fn not(self) -> I48

impl Rem<I48> for I48

type Output = I48

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

impl Shl<I48> for I48

type Output = I48

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

impl Shr<I48> for I48

type Output = I48

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

impl BitAnd<I48> for I48

type Output = I48

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

impl BitOr<I48> for I48

type Output = I48

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

impl BitXor<I48> for I48

type Output = I48

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

impl From<i8> for I48

fn from(other: i8) -> I48

impl From<i16> for I48

fn from(other: i16) -> I48

impl From<I20> for I48

fn from(other: I20) -> I48

impl From<I24> for I48

fn from(other: I24) -> I48

impl From<i32> for I48

fn from(other: i32) -> I48

impl From<u8> for I48

fn from(other: u8) -> I48

impl From<u16> for I48

fn from(other: u16) -> I48

impl From<U20> for I48

fn from(other: U20) -> I48

impl From<U24> for I48

fn from(other: U24) -> I48

impl From<u32> for I48

fn from(other: u32) -> I48

impl Neg for I48

type Output = I48

fn neg(self) -> I48

impl FromSample<i8> for I48

fn from_sample_(s: i8) -> I48

impl FromSample<i16> for I48

fn from_sample_(s: i16) -> I48

impl FromSample<I24> for I48

fn from_sample_(s: I24) -> I48

impl FromSample<i32> for I48

fn from_sample_(s: i32) -> I48

impl FromSample<i64> for I48

fn from_sample_(s: i64) -> I48

impl FromSample<u8> for I48

fn from_sample_(s: u8) -> I48

impl FromSample<u16> for I48

fn from_sample_(s: u16) -> I48

impl FromSample<U24> for I48

fn from_sample_(s: U24) -> I48

impl FromSample<u32> for I48

fn from_sample_(s: u32) -> I48

impl FromSample<U48> for I48

fn from_sample_(s: U48) -> I48

impl FromSample<u64> for I48

fn from_sample_(s: u64) -> I48

impl FromSample<f32> for I48

fn from_sample_(s: f32) -> I48

impl FromSample<f64> for I48

fn from_sample_(s: f64) -> I48

impl Sample for I48

fn equilibrium() -> I48

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.