Trait Buffer

Source
pub trait Buffer
where Self: Sized,
{ const SIZE: usize; // Required method fn new() -> Result<Self, HardError>; }
Expand description

Trait implemented by any buffer type generated with buffer_type.

Required Associated Constants§

Source

const SIZE: usize

The size of this buffer, in bytes.

Required Methods§

Source

fn new() -> Result<Self, HardError>

Create a new instance of the buffer, filled with garbage data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§