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

pub struct U24(_);

Methods

impl U24
[src]

[src]

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

Returns None if val is out of range.

[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.

[src]

Return the internal value used to represent the sample type.

Trait Implementations

impl FromSample<i8> for U24
[src]

[src]

impl FromSample<i16> for U24
[src]

[src]

impl FromSample<I24> for U24
[src]

[src]

impl FromSample<i32> for U24
[src]

[src]

impl FromSample<I48> for U24
[src]

[src]

impl FromSample<i64> for U24
[src]

[src]

impl FromSample<u8> for U24
[src]

[src]

impl FromSample<u16> for U24
[src]

[src]

impl FromSample<u32> for U24
[src]

[src]

impl FromSample<U48> for U24
[src]

[src]

impl FromSample<u64> for U24
[src]

[src]

impl FromSample<f32> for U24
[src]

[src]

impl FromSample<f64> for U24
[src]

[src]

impl Copy for U24
[src]

impl Clone for U24
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for U24
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for U24
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for U24
[src]

impl PartialOrd for U24
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Default for U24
[src]

[src]

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

impl From<i32> for U24
[src]

[src]

Performs the conversion.

impl Add<U24> for U24
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<U24> for U24
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<U24> for U24
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<U24> for U24
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Not for U24
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl Rem<U24> for U24
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl Shl<U24> for U24
[src]

The resulting type after applying the << operator.

[src]

Performs the << operation.

impl Shr<U24> for U24
[src]

The resulting type after applying the >> operator.

[src]

Performs the >> operation.

impl BitAnd<U24> for U24
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl BitOr<U24> for U24
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl BitXor<U24> for U24
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl From<u8> for U24
[src]

[src]

Performs the conversion.

impl From<u16> for U24
[src]

[src]

Performs the conversion.

impl From<U20> for U24
[src]

[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

[src]

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

[src]

The multiplicative identity of the signal. Read more

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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