[][src]Trait ilda_idtf::LayoutBuffer

pub trait LayoutBuffer: FromBytes {
    type Buffer;
    fn empty() -> Self::Buffer;
fn slice(buffer: &Self::Buffer) -> &[u8];
fn slice_mut(buffer: &mut Self::Buffer) -> &mut [u8]; }

A helper trait for producing and working with precisely sized buffers for IDTF layout.

Associated Types

type Buffer

Loading content...

Required methods

fn empty() -> Self::Buffer

fn slice(buffer: &Self::Buffer) -> &[u8]

fn slice_mut(buffer: &mut Self::Buffer) -> &mut [u8]

Loading content...

Implementors

impl LayoutBuffer for ColorPalette[src]

type Buffer = [u8; 3]

impl LayoutBuffer for Coords2dIndexedColor[src]

type Buffer = [u8; 6]

impl LayoutBuffer for Coords2dTrueColor[src]

type Buffer = [u8; 8]

impl LayoutBuffer for Coords3dIndexedColor[src]

type Buffer = [u8; 8]

impl LayoutBuffer for Coords3dTrueColor[src]

type Buffer = [u8; 10]

Loading content...