[][src]Struct dasp::sample::types::U11

pub struct U11(_);

Implementations

impl U11[src]

pub fn new(val: i16) -> Option<U11>[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: i16) -> U11[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) -> i16[src]

Return the internal value used to represent the sample type.

Trait Implementations

impl Add<U11> for U11[src]

type Output = U11

The resulting type after applying the + operator.

impl BitAnd<U11> for U11[src]

type Output = U11

The resulting type after applying the & operator.

impl BitOr<U11> for U11[src]

type Output = U11

The resulting type after applying the | operator.

impl BitXor<U11> for U11[src]

type Output = U11

The resulting type after applying the ^ operator.

impl Clone for U11[src]

impl Copy for U11[src]

impl Debug for U11[src]

impl Default for U11[src]

impl Div<U11> for U11[src]

type Output = U11

The resulting type after applying the / operator.

impl Eq for U11[src]

impl From<U11> for I20[src]

impl From<i16> for U11[src]

impl From<u8> for U11[src]

impl Mul<U11> for U11[src]

type Output = U11

The resulting type after applying the * operator.

impl Neg for U11[src]

type Output = U11

The resulting type after applying the - operator.

impl Not for U11[src]

type Output = U11

The resulting type after applying the ! operator.

impl Ord for U11[src]

impl PartialEq<U11> for U11[src]

impl PartialOrd<U11> for U11[src]

impl Rem<U11> for U11[src]

type Output = U11

The resulting type after applying the % operator.

impl Shl<U11> for U11[src]

type Output = U11

The resulting type after applying the << operator.

impl Shr<U11> for U11[src]

type Output = U11

The resulting type after applying the >> operator.

impl StructuralEq for U11[src]

impl StructuralPartialEq for U11[src]

impl Sub<U11> for U11[src]

type Output = U11

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for U11

impl Send for U11

impl Sync for U11

impl Unpin for U11

impl UnwindSafe for U11

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.