pub struct File {}
Implementations§
Source§impl File
impl File
pub fn open(fname: &str) -> Result<FileReader, ()>
pub fn create(fname: &str) -> Result<FileWriter, ()>
pub fn exist(fname: &str) -> bool
pub fn remove(fname: &str) -> Result<(), ()>
pub fn rename(old_name: &str, new_name: &str) -> Result<(), ()>
pub fn tmpname() -> String
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