[−][src]Struct ordcode::buf::WriteToTail
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]
W: TailWriteBytes,
Auto Trait Implementations
impl<'a, W> RefUnwindSafe for WriteToTail<'a, W> where
W: RefUnwindSafe,
[src]
W: RefUnwindSafe,
impl<'a, W> Send for WriteToTail<'a, W> where
W: Send,
[src]
W: Send,
impl<'a, W> Sync for WriteToTail<'a, W> where
W: Sync,
[src]
W: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,