pub struct FileStat {
pub exists: bool,
pub size: u64,
}Expand description
On-disk facts about one path, as probed by Filesystem::metadata.
Fields§
§exists: boolWhether the file exists.
size: u64Size of the file in bytes (zero when absent).
Trait Implementations§
impl Copy for FileStat
impl Eq for FileStat
impl StructuralPartialEq for FileStat
Auto Trait Implementations§
impl Freeze for FileStat
impl RefUnwindSafe for FileStat
impl Send for FileStat
impl Sync for FileStat
impl Unpin for FileStat
impl UnsafeUnpin for FileStat
impl UnwindSafe for FileStat
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