pub struct IoWriter<'a, W: Write> { /* private fields */ }Available on crate feature
std only.Expand description
A writer that writes to a std::io::Write.
Implementations§
Trait Implementations§
Source§impl<W: Write> Writer for IoWriter<'_, W>
impl<W: Write> Writer for IoWriter<'_, W>
Source§fn write(&mut self, bytes: &[u8]) -> Result<(), EncodeError>
fn write(&mut self, bytes: &[u8]) -> Result<(), EncodeError>
Write
bytes to the underlying writer. Exactly bytes.len() bytes must be written, or else an error should be returned. Read moreSource§fn write_u8(&mut self, value: u8) -> Result<(), EncodeError>
fn write_u8(&mut self, value: u8) -> Result<(), EncodeError>
Write a single byte to the underlying writer. Read more
Source§fn write_u16(&mut self, value: u16) -> Result<(), EncodeError>
fn write_u16(&mut self, value: u16) -> Result<(), EncodeError>
Write a
u16 to the underlying writer. Read moreSource§fn write_u32(&mut self, value: u32) -> Result<(), EncodeError>
fn write_u32(&mut self, value: u32) -> Result<(), EncodeError>
Write a
u32 to the underlying writer. Read moreSource§fn write_u64(&mut self, value: u64) -> Result<(), EncodeError>
fn write_u64(&mut self, value: u64) -> Result<(), EncodeError>
Write a
u64 to the underlying writer. Read moreSource§fn write_u128(&mut self, value: u128) -> Result<(), EncodeError>
fn write_u128(&mut self, value: u128) -> Result<(), EncodeError>
Write a
u128 to the underlying writer. Read moreAuto Trait Implementations§
impl<'a, W> Freeze for IoWriter<'a, W>
impl<'a, W> RefUnwindSafe for IoWriter<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for IoWriter<'a, W>where
W: Send,
impl<'a, W> Sync for IoWriter<'a, W>where
W: Sync,
impl<'a, W> Unpin for IoWriter<'a, W>
impl<'a, W> UnsafeUnpin for IoWriter<'a, W>
impl<'a, W> !UnwindSafe for IoWriter<'a, W>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more