[][src]Struct ordcode::buf::WriteToTail

pub struct WriteToTail<'a, W>(pub &'a mut W)
where
    W: TailWriteBytes
;

Adapter which implements WriteBytes for writing to the end of double-ended buffer

let mut buf = vec![0_u8; 100];
let mut writer = DeBytesWriter::new(&mut buf);
1u16.to_writer(WriteToTail(&mut writer), params::AscendingOrder).unwrap();
assert_eq!(&buf[98..100], &[0, 1]);

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

impl<'a, W> !UnwindSafe for WriteToTail<'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.