Struct sample::types::u24::U24[][src]

pub struct U24(_);

Methods

impl U24
[src]

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

Returns None if val is out of range.

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.

Return the internal value used to represent the sample type.

Trait Implementations

impl FromSample<U24> for i8
[src]

impl FromSample<U24> for i16
[src]

impl FromSample<U24> for I24
[src]

impl FromSample<U24> for i32
[src]

impl FromSample<U24> for I48
[src]

impl FromSample<U24> for i64
[src]

impl FromSample<U24> for u8
[src]

impl FromSample<U24> for u16
[src]

impl FromSample<i8> for U24
[src]

impl FromSample<i16> for U24
[src]

impl FromSample<I24> for U24
[src]

impl FromSample<i32> for U24
[src]

impl FromSample<I48> for U24
[src]

impl FromSample<i64> for U24
[src]

impl FromSample<u8> for U24
[src]

impl FromSample<u16> for U24
[src]

impl FromSample<u32> for U24
[src]

impl FromSample<U48> for U24
[src]

impl FromSample<u64> for U24
[src]

impl FromSample<f32> for U24
[src]

impl FromSample<f64> for U24
[src]

impl FromSample<U24> for u32
[src]

impl FromSample<U24> for U48
[src]

impl FromSample<U24> for u64
[src]

impl FromSample<U24> for f32
[src]

impl FromSample<U24> for f64
[src]

impl Copy for U24
[src]

impl Clone for U24
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for U24
[src]

Formats the value using the given formatter. Read more

impl PartialEq for U24
[src]

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

This method tests for !=.

impl Eq for U24
[src]

impl PartialOrd for U24
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for U24
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Default for U24
[src]

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

impl From<i32> for U24
[src]

Performs the conversion.

impl Add<U24> for U24
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<U24> for U24
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<U24> for U24
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Div<U24> for U24
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Not for U24
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl Rem<U24> for U24
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl Shl<U24> for U24
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl Shr<U24> for U24
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl BitAnd<U24> for U24
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl BitOr<U24> for U24
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl BitXor<U24> for U24
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl From<u8> for U24
[src]

Performs the conversion.

impl From<u16> for U24
[src]

Performs the conversion.

impl From<U20> for U24
[src]

Performs the conversion.

impl From<U24> for I48
[src]

Performs the conversion.

impl From<U24> for U48
[src]

Performs the conversion.

impl Sample for U24
[src]

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

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

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

The multiplicative identity of the signal. Read more

Convert self to any type that implements FromSample<Self>. Read more

Create a Self from any type that implements ToSample<Self>. Read more

Converts self to the equivalent Sample in the associated Signed format. Read more

Converts self to the equivalent Sample in the associated Float format. Read more

Adds (or "offsets") the amplitude of the Sample by the given signed amplitude. Read more

Multiplies (or "scales") the amplitude of the Sample by the given float amplitude. Read more

Auto Trait Implementations

impl Send for U24

impl Sync for U24