[][src]Trait bluetooth_mesh::bytes::Storage

pub trait Storage: AsRef<[u8]> + AsMut<[u8]> {
    fn with_size(size: usize) -> Self;

    fn len(&self) -> usize { ... }
}

Objects that store and own bytes (Box<[u8]>, Vec<u8>, StaticBuf<[u8; 32]>, etc). This allows for generic byte storage types for byte buffers.

Required methods

fn with_size(size: usize) -> Self

Loading content...

Provided methods

fn len(&self) -> usize

Loading content...

Implementations on Foreign Types

impl Storage for Box<[u8]>[src]

impl Storage for Vec<u8>[src]

Loading content...

Implementors

impl<ArrayBuf> Storage for StaticBuf<ArrayBuf> where
    ArrayBuf: AsRef<[u8]> + AsMut<[u8]> + Default + Copy
[src]

Loading content...