[][src]Struct dasp_sample::types::u48::U48

pub struct U48(_);

Implementations

impl U48[src]

pub fn new(val: i64) -> Option<Self>[src]

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

Returns None if val is out of range.

pub fn new_unchecked(s: i64) -> Self[src]

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.

pub fn inner(self) -> i64[src]

Return the internal value used to represent the sample type.

Trait Implementations

impl Add<U48> for U48[src]

type Output = U48

The resulting type after applying the + operator.

impl BitAnd<U48> for U48[src]

type Output = U48

The resulting type after applying the & operator.

impl BitOr<U48> for U48[src]

type Output = U48

The resulting type after applying the | operator.

impl BitXor<U48> for U48[src]

type Output = U48

The resulting type after applying the ^ operator.

impl Clone for U48[src]

impl Copy for U48[src]

impl Debug for U48[src]

impl Default for U48[src]

impl Div<U48> for U48[src]

type Output = U48

The resulting type after applying the / operator.

impl Eq for U48[src]

impl From<U20> for U48[src]

impl From<U24> for U48[src]

impl From<i64> for U48[src]

impl From<u16> for U48[src]

impl From<u32> for U48[src]

impl From<u8> for U48[src]

impl FromSample<I24> for U48[src]

impl FromSample<I48> for U48[src]

impl FromSample<U24> for U48[src]

impl FromSample<U48> for i8[src]

impl FromSample<U48> for i16[src]

impl FromSample<U48> for u64[src]

impl FromSample<U48> for f32[src]

impl FromSample<U48> for f64[src]

impl FromSample<U48> for I24[src]

impl FromSample<U48> for i32[src]

impl FromSample<U48> for I48[src]

impl FromSample<U48> for i64[src]

impl FromSample<U48> for u8[src]

impl FromSample<U48> for u16[src]

impl FromSample<U48> for U24[src]

impl FromSample<U48> for u32[src]

impl FromSample<f32> for U48[src]

impl FromSample<f64> for U48[src]

impl FromSample<i16> for U48[src]

impl FromSample<i32> for U48[src]

impl FromSample<i64> for U48[src]

impl FromSample<i8> for U48[src]

impl FromSample<u16> for U48[src]

impl FromSample<u32> for U48[src]

impl FromSample<u64> for U48[src]

impl FromSample<u8> for U48[src]

impl Mul<U48> for U48[src]

type Output = U48

The resulting type after applying the * operator.

impl Not for U48[src]

type Output = U48

The resulting type after applying the ! operator.

impl Ord for U48[src]

impl PartialEq<U48> for U48[src]

impl PartialOrd<U48> for U48[src]

impl Rem<U48> for U48[src]

type Output = U48

The resulting type after applying the % operator.

impl Sample for U48[src]

type Signed = i64

When summing two samples of a signal together, it is necessary for both samples to be represented in some signed format. This associated Addition type represents the format to which Self should be converted for optimal Addition performance. Read more

type Float = f64

When multiplying two samples of a signal together, it is necessary for both samples to be represented in some signed, floating-point format. This associated Multiplication type represents the format to which Self should be converted for optimal Multiplication performance. Read more

impl Shl<U48> for U48[src]

type Output = U48

The resulting type after applying the << operator.

impl Shr<U48> for U48[src]

type Output = U48

The resulting type after applying the >> operator.

impl StructuralEq for U48[src]

impl StructuralPartialEq for U48[src]

impl Sub<U48> for U48[src]

type Output = U48

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for U48

impl Send for U48

impl Sync for U48

impl Unpin for U48

impl UnwindSafe for U48

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> From<T> for T[src]

impl<S> FromSample<S> for S[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.