[][src]Struct ordcode::buf::WriteToHead

pub struct WriteToHead<'a, W>(pub &'a mut W)
where
    W: WriteBytes
;

Adapter for always writing to buffer head, even for write_tail()

Useful e.g. for appending serialized suffix to the buffer

Trait Implementations

impl<'a, W> TailWriteBytes for WriteToHead<'a, W> where
    W: TailWriteBytes
[src]

impl<'a, W> WriteBytes for WriteToHead<'a, W> where
    W: TailWriteBytes
[src]

Auto Trait Implementations

impl<'a, W> RefUnwindSafe for WriteToHead<'a, W> where
    W: RefUnwindSafe
[src]

impl<'a, W> Send for WriteToHead<'a, W> where
    W: Send
[src]

impl<'a, W> Sync for WriteToHead<'a, W> where
    W: Sync
[src]

impl<'a, W> Unpin for WriteToHead<'a, W>[src]

impl<'a, W> !UnwindSafe for WriteToHead<'a, W>[src]

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.