pub struct OsFs;Expand description
The real filesystem, addressed by absolute native paths.
Trait Implementations§
impl Copy for OsFs
Source§impl SourceFs for OsFs
impl SourceFs for OsFs
Source§fn read_file(&self, path: &str) -> Option<String>
fn read_file(&self, path: &str) -> Option<String>
Read the file at a canonical path.
None means it is not there,
or cannot be read, which resolution treats the same way.Source§fn read_dir(&self, path: &str) -> Option<Vec<DirEntry>>
fn read_dir(&self, path: &str) -> Option<Vec<DirEntry>>
List a directory.
None means it is not there or is unreadable.Source§fn native_paths(&self) -> bool
fn native_paths(&self) -> bool
Auto Trait Implementations§
impl Forget for OsFs
impl Freeze for OsFs
impl Move for OsFs
impl RefUnwindSafe for OsFs
impl Send for OsFs
impl Sync for OsFs
impl Unpin for OsFs
impl UnsafeUnpin for OsFs
impl UnwindSafe for OsFs
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