pub struct NativeFileSystem;Expand description
Implementation of FileSystem using the standard library
Trait Implementations§
Source§impl FileSystem for NativeFileSystem
impl FileSystem for NativeFileSystem
Source§fn load_text_file_preview(
&self,
path: &Path,
max_chars: usize,
) -> Result<String>
fn load_text_file_preview( &self, path: &Path, max_chars: usize, ) -> Result<String>
Read a short preview of a text file
Determine if a path is hidden
Source§fn user_dirs(&self, canonicalize_paths: bool) -> Option<UserDirectories>
fn user_dirs(&self, canonicalize_paths: bool) -> Option<UserDirectories>
Returns the user directories
Source§fn current_dir(&self) -> Result<PathBuf>
fn current_dir(&self) -> Result<PathBuf>
Get the current working directory
Auto Trait Implementations§
impl Freeze for NativeFileSystem
impl RefUnwindSafe for NativeFileSystem
impl Send for NativeFileSystem
impl Sync for NativeFileSystem
impl Unpin for NativeFileSystem
impl UnsafeUnpin for NativeFileSystem
impl UnwindSafe for NativeFileSystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more