pub struct Stat(/* private fields */);Expand description
Metadata of a file in the real file system
This is an implementation of the Stat trait for the
RealSystem.
Trait Implementations§
Source§impl Stat for Stat
impl Stat for Stat
Source§fn is_regular_file(&self) -> bool
fn is_regular_file(&self) -> bool
Whether the file is a regular file
Source§fn is_directory(&self) -> bool
fn is_directory(&self) -> bool
Whether the file is a directory
Source§fn is_symlink(&self) -> bool
fn is_symlink(&self) -> bool
Whether the file is a symbolic link
Source§fn is_block_device(&self) -> bool
fn is_block_device(&self) -> bool
Whether the file is a block device
Source§fn is_character_device(&self) -> bool
fn is_character_device(&self) -> bool
Whether the file is a character device
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnsafeUnpin for Stat
impl UnwindSafe for Stat
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