pub trait Read {
fn read(&mut self, buf: &mut [u8]) -> Result<usize>;
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize> { ... }
fn read_to_string(&mut self, buf: &mut String) -> Result<usize> { ... }
fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> { ... }
fn by_ref(&mut self) -> &mut Self where Self: Sized { ... }
}
Required Methods
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Provided Methods
Implementors
impl Read for Stdin
impl Read for File
impl<'a> Read for &'a File
impl<'a> Read for &'a FileDesc