kvarn_utils::preludeTrait Read
1.0.0 ยท source pub trait Read {
// Required method
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>;
// Provided methods
fn read_vectored(
&mut self,
bufs: &mut [IoSliceMut<'_>],
) -> Result<usize, Error> { ... }
fn is_read_vectored(&self) -> bool { ... }
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error> { ... }
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error> { ... }
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error> { ... }
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error> { ... }
fn read_buf_exact(
&mut self,
cursor: