#[non_exhaustive]pub struct Empty;🔬This is a nightly-only experimental API. (
core_io #154046)Expand description
Trait Implementations§
impl Copy for Empty
1.51.0 · Source§impl Seek for Empty
impl Seek for Empty
Source§fn seek(&mut self, _pos: SeekFrom) -> Result<u64>
fn seek(&mut self, _pos: SeekFrom) -> Result<u64>
Seek to an offset, in bytes, in a stream. Read more
Source§fn stream_len(&mut self) -> Result<u64>
fn stream_len(&mut self) -> Result<u64>
🔬This is a nightly-only experimental API. (
seek_stream_len #59359)Returns the length of this stream (in bytes). Read more
1.73.0 · Source§impl Write for Empty
impl Write for Empty
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector #69941)Source§fn write_all(&mut self, _buf: &[u8]) -> Result<()>
fn write_all(&mut self, _buf: &[u8]) -> Result<()>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_all_vectored(&mut self, _bufs: &mut [IoSlice<'_>]) -> Result<()>
fn write_all_vectored(&mut self, _bufs: &mut [IoSlice<'_>]) -> Result<()>
🔬This is a nightly-only experimental API. (
write_all_vectored #70436)Attempts to write multiple buffers into this writer. Read more
Source§fn write_fmt(&mut self, _args: Arguments<'_>) -> Result<()>
fn write_fmt(&mut self, _args: Arguments<'_>) -> Result<()>
Writes a formatted string into this writer, returning any error
encountered. Read more
1.73.0 · Source§impl Write for &Empty
impl Write for &Empty
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector #69941)Source§fn write_all(&mut self, _buf: &[u8]) -> Result<()>
fn write_all(&mut self, _buf: &[u8]) -> Result<()>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_all_vectored(&mut self, _bufs: &mut [IoSlice<'_>]) -> Result<()>
fn write_all_vectored(&mut self, _bufs: &mut [IoSlice<'_>]) -> Result<()>
🔬This is a nightly-only experimental API. (
write_all_vectored #70436)Attempts to write multiple buffers into this writer. Read more
Source§fn write_fmt(&mut self, _args: Arguments<'_>) -> Result<()>
fn write_fmt(&mut self, _args: Arguments<'_>) -> Result<()>
Writes a formatted string into this writer, returning any error
encountered. Read more
Auto Trait Implementations§
impl Freeze for Empty
impl RefUnwindSafe for Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnsafeUnpin for Empty
impl UnwindSafe for Empty
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