pub struct File { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl Read for File
impl Read for File
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::ReadError>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::ReadError>
Pull some bytes from this source into the specified buffer, returning how many bytes were
read. Read more
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::ReadError>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::ReadError>>
Read the exact number of bytes required to fill
buf. Read moreSource§fn available_bytes(&self, _at_least: usize) -> bool
fn available_bytes(&self, _at_least: usize) -> bool
Hints whether there are at least
at_least bytes available. Read moreimpl Eq for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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