Trait WriteThroughCursor
pub trait WriteThroughCursor: Sized
Trait used to allow indirect implementation of Write for Cursor<Self>.
Since Cursor is not a foundational type, it is not possible to implement
Write for Cursor<T> if Write is defined in libcore and T is in a
downstream crate (e.g., liballoc or libstd).
Methods are identical in purpose and meaning to their Write namesakes.
Required Methods
fn write(this: &mut Cursor<Self>, buf: &[u8]) -> Result<usize>fn write_vectored(this: &mut Cursor<Self>, bufs: &[IoSlice<'_>]) -> Result<usize>fn is_write_vectored(this: &Cursor<Self>) -> boolfn write_all(this: &mut Cursor<Self>, buf: &[u8]) -> Result<()>fn write_all_vectored(this: &mut Cursor<Self>, bufs: &mut [IoSlice<'_>]) -> Result<()>fn flush(this: &mut Cursor<Self>) -> Result<()>