pub trait FromBytes<L>: Sized {
type Error;
// Required method
fn from_bytes<B: ByteOrder>(
bytes: &[u8],
channels: usize,
) -> Result<Self, Self::Error>;
}Expand description
Decodes a buffer from raw little- or big-endian bytes.
L is the BufferLayout the decoded samples are arranged in.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".