pub trait BufferLayout: Sized + Sealed {
// Required method
fn index_of(info: &BufferInfo<Self>, channel: usize, frame: usize) -> usize;
}Expand description
How multi-channel samples are arranged in a flat buffer.
Sealed: the only layouts are Interleaved and Deinterleaved.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".