Module sample::conv
[−]
[src]
Pure functions and traits for converting between i8, i16, I24, i32, I48, i64, u8, u16, U24, u32, U48, u64, f32 and f64.
Each conversion function is performance focused, memory-sensitive and expects that the user has validated their input prior to the function call.
No conversion function will ever cast to a type with a size in bytes larger than the largest between the source and target sample types.
The conversion functions do not check the range of incoming values for floating point values
or any of the custom I24
, U24
, I48
and U48
types.
Modules
f32 | |
f64 | |
i16 | |
i24 | |
i32 | |
i48 | |
i64 | |
i8 | |
u16 | |
u24 | |
u32 | |
u48 | |
u64 | |
u8 |
Traits
Duplex |
Sample types which may be converted to and from some type |
DuplexBoxedFrameSlice | |
DuplexBoxedSampleSlice | |
DuplexBoxedSlice | |
DuplexFrameSlice | |
DuplexFrameSliceMut | |
DuplexSampleSlice | |
DuplexSampleSliceMut | |
DuplexSlice | |
DuplexSliceMut | |
FromBoxedFrameSlice |
For converting from a boxed slice of |
FromBoxedSampleSlice |
For converting a boxed slice of |
FromFrameSlice |
For converting from a slice of |
FromFrameSliceMut |
For converting from a slice of |
FromSample |
Similar to the std |
FromSampleSlice |
For converting from a slice of |
FromSampleSliceMut |
For converting from a mutable slice of |
ToBoxedFrameSlice |
For converting from a boxed slice of |
ToBoxedSampleSlice |
For converting from a boxed slice of |
ToFrameSlice |
For converting from a slice of |
ToFrameSliceMut |
For converting from a mutable slice of |
ToSample |
Similar to the std |
ToSampleSlice |
For converting from a slice of |
ToSampleSliceMut |
For converting from a mutable slice of |