pub struct Kind(/* private fields */);Expand description
Native file kind observed from descriptor metadata.
Implementations§
Source§impl Kind
impl Kind
Sourcepub const fn from_dirent(value: u8) -> Option<Self>
pub const fn from_dirent(value: u8) -> Option<Self>
Uses the native entry’s kind without a second metadata operation. An absent or unrecognized hint still requires descriptor-relative metadata.
Sourcepub const fn is_regular(self) -> bool
pub const fn is_regular(self) -> bool
Whether this kind is one regular file.
pub const fn is_dir(self) -> bool
pub const fn is_symlink(self) -> bool
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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