pub trait ToByteBufferRef<L>: Sized {
type Error;
// Required methods
fn bytes_len(&self);
fn to_bytes<B: ByteOrder>(
&self,
bytes: &mut [u8],
channels: usize,
) -> Result<usize, Self::Error>;
}Expand description
Encodes a buffer into raw bytes in a caller-chosen endianness.
Required Associated Types§
Required Methods§
Sourcefn bytes_len(&self)
fn bytes_len(&self)
The number of bytes Self::to_bytes will write.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".