pub struct File { /* private fields */ }
Expand description
Represents an open file on disk.
Implementations§
Source§impl File
impl File
Sourcepub fn seek_from_start(&mut self, offset: u32) -> Result<(), ()>
pub fn seek_from_start(&mut self, offset: u32) -> Result<(), ()>
Seek to a new position in the file, relative to the start of the file.
Sourcepub fn seek_from_end(&mut self, offset: u32) -> Result<(), ()>
pub fn seek_from_end(&mut self, offset: u32) -> Result<(), ()>
Seek to a new position in the file, relative to the end of the file.
Trait Implementations§
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