#[repr(u8)]pub enum DirentKind {
Unspecified = 0,
Regular = 1,
Directory = 2,
Symlink = 3,
BlockDev = 4,
CharDev = 5,
Socket = 6,
}
Variants§
Implementations§
source§impl DirentKind
impl DirentKind
pub fn try_from_raw(raw: u8) -> Option<Self>
Trait Implementations§
source§impl Clone for DirentKind
impl Clone for DirentKind
source§fn clone(&self) -> DirentKind
fn clone(&self) -> DirentKind
Returns a copy of the value. Read more
1.6.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 DirentKind
impl Debug for DirentKind
source§impl Default for DirentKind
impl Default for DirentKind
source§fn default() -> DirentKind
fn default() -> DirentKind
Returns the “default value” for a type. Read more
impl Copy for DirentKind
Auto Trait Implementations§
impl Freeze for DirentKind
impl RefUnwindSafe for DirentKind
impl Send for DirentKind
impl Sync for DirentKind
impl Unpin for DirentKind
impl UnwindSafe for DirentKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)