Struct sample::types::i48::I48 [] [src]

pub struct I48(_);

Methods

impl I48
[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 I48
[src]

[src]

impl FromSample<i16> for I48
[src]

[src]

impl FromSample<I24> for I48
[src]

[src]

impl FromSample<i32> for I48
[src]

[src]

impl FromSample<i64> for I48
[src]

[src]

impl FromSample<u8> for I48
[src]

[src]

impl FromSample<u16> for I48
[src]

[src]

impl FromSample<U24> for I48
[src]

[src]

impl FromSample<u32> for I48
[src]

[src]

impl FromSample<U48> for I48
[src]

[src]

impl FromSample<u64> for I48
[src]

[src]

impl FromSample<f32> for I48
[src]

[src]

impl FromSample<f64> for I48
[src]

[src]

impl Copy for I48
[src]

impl Clone for I48
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for I48
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for I48
[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 I48
[src]

impl PartialOrd for I48
[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 I48
[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 I48
[src]

[src]

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

impl From<i64> for I48
[src]

[src]

Performs the conversion.

impl Add<I48> for I48
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<I48> for I48
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<I48> for I48
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<I48> for I48
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Not for I48
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl Rem<I48> for I48
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl Shl<I48> for I48
[src]

The resulting type after applying the << operator.

[src]

Performs the << operation.

impl Shr<I48> for I48
[src]

The resulting type after applying the >> operator.

[src]

Performs the >> operation.

impl BitAnd<I48> for I48
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl BitOr<I48> for I48
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl BitXor<I48> for I48
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl From<i8> for I48
[src]

[src]

Performs the conversion.

impl From<i16> for I48
[src]

[src]

Performs the conversion.

impl From<I20> for I48
[src]

[src]

Performs the conversion.

impl From<I24> for I48
[src]

[src]

Performs the conversion.

impl From<i32> for I48
[src]

[src]

Performs the conversion.

impl From<u8> for I48
[src]

[src]

Performs the conversion.

impl From<u16> for I48
[src]

[src]

Performs the conversion.

impl From<U20> for I48
[src]

[src]

Performs the conversion.

impl From<U24> for I48
[src]

[src]

Performs the conversion.

impl From<u32> for I48
[src]

[src]

Performs the conversion.

impl Neg for I48
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl Sample for I48
[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

impl SignedSample for I48
[src]