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 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