pub struct RealFileSystem;Expand description
Real file system implementation that delegates to std::fs and file_utils.
Trait Implementations§
Source§impl Clone for RealFileSystem
impl Clone for RealFileSystem
Source§fn clone(&self) -> RealFileSystem
fn clone(&self) -> RealFileSystem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealFileSystem
impl Debug for RealFileSystem
Source§impl Default for RealFileSystem
impl Default for RealFileSystem
Source§fn default() -> RealFileSystem
fn default() -> RealFileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystem for RealFileSystem
impl FileSystem for RealFileSystem
Source§fn is_symlink(&self, path: &Path) -> bool
fn is_symlink(&self, path: &Path) -> bool
Check if a path is a symlink
Source§fn metadata(&self, path: &Path) -> Result<FileMetadata>
fn metadata(&self, path: &Path) -> Result<FileMetadata>
Get metadata for a path (follows symlinks)
Source§fn symlink_metadata(&self, path: &Path) -> Result<FileMetadata>
fn symlink_metadata(&self, path: &Path) -> Result<FileMetadata>
Get metadata for a path without following symlinks
Source§fn read_to_string(&self, path: &Path) -> LintResult<String>
fn read_to_string(&self, path: &Path) -> LintResult<String>
Read file contents to string (with security checks)
impl Copy for RealFileSystem
Auto Trait Implementations§
impl Freeze for RealFileSystem
impl RefUnwindSafe for RealFileSystem
impl Send for RealFileSystem
impl Sync for RealFileSystem
impl Unpin for RealFileSystem
impl UnsafeUnpin for RealFileSystem
impl UnwindSafe for RealFileSystem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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