Skip to main content

BufferLayout

Trait BufferLayout 

Source
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§

Source

fn index_of(info: &BufferInfo<Self>, channel: usize, frame: usize) -> usize

The flat index of frame on channel, for a buffer described by info.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§