Struct menoh::Buffer[][src]

pub struct Buffer<'a, T> where
    T: 'a + DtypeCompatible
{ /* fields omitted */ }

Buffer, a safe wrapper of menoh buffer control scheme.

It's highly recommended to control buffer content via this instance.

Lifetime of Buffer instance is bouded by internal data.

Methods

impl<'a, T> Buffer<'a, T> where
    T: 'a + DtypeCompatible
[src]

Create buffer.

  • data - data can't be manipulate while Buffer instance lives.

Update buffer content from other data.

Data length must be same as internal data length.

Auto Trait Implementations

impl<'a, T> Send for Buffer<'a, T> where
    T: Send

impl<'a, T> Sync for Buffer<'a, T> where
    T: Sync