Struct allsorts_no_std::binary::write::WriteBuffer[][src]

pub struct WriteBuffer { /* fields omitted */ }

An in-memory buffer that implements WriteContext.

Implementations

impl WriteBuffer[src]

pub fn new() -> Self[src]

Create a new, empty WriteBuffer

pub fn bytes(&self) -> &[u8][src]

Retrieve a slice of the data held by this buffer

pub fn len(&self) -> usize[src]

Returns the current size of the data held by this buffer

pub fn into_inner(self) -> Vec<u8>[src]

Consume self and return the inner buffer

Trait Implementations

impl WriteContext for WriteBuffer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.