pub struct EmptyWrite;Expand description
An implementation of Trait Write that does nothing.
Implementations§
Source§impl EmptyWrite
impl EmptyWrite
Trait Implementations§
Source§impl Clone for EmptyWrite
impl Clone for EmptyWrite
Source§impl Debug for EmptyWrite
impl Debug for EmptyWrite
Source§impl<'a> ExtWrite<'a> for EmptyWrite
impl<'a> ExtWrite<'a> for EmptyWrite
Source§impl From<()> for EmptyWrite
impl From<()> for EmptyWrite
Source§impl Write for EmptyWrite
impl Write for EmptyWrite
Source§fn write<'a>(&mut self, _buf: &'a [u8]) -> Result<usize>
fn write<'a>(&mut self, _buf: &'a [u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Source§fn write_all<'a>(&mut self, _buf: &'a [u8]) -> Result<()>
fn write_all<'a>(&mut self, _buf: &'a [u8]) -> Result<()>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_fmt(&mut self, _fmt: Arguments<'_>) -> Result<()>
fn write_fmt(&mut self, _fmt: Arguments<'_>) -> Result<()>
Writes a formatted string into this writer, returning any error
encountered. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector)Auto Trait Implementations§
impl Freeze for EmptyWrite
impl RefUnwindSafe for EmptyWrite
impl Send for EmptyWrite
impl Sync for EmptyWrite
impl Unpin for EmptyWrite
impl UnwindSafe for EmptyWrite
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