Enum fs_at::LinkEntryType
source · #[non_exhaustive]
pub enum LinkEntryType {
File,
Dir,
Other,
}Expand description
File kind indicator
On Windows symlinks are implemented an actual directory or file, with reparse data stored in a single global index; the kind of the actual directory or file leaks through to the operations one can perform on the symlink (e.g. cannot chdir from a CMD prompt to a file-backed symlink).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for LinkEntryType
impl Clone for LinkEntryType
source§fn clone(&self) -> LinkEntryType
fn clone(&self) -> LinkEntryType
Returns a copy 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 LinkEntryType
impl Debug for LinkEntryType
source§impl Default for LinkEntryType
impl Default for LinkEntryType
source§fn default() -> LinkEntryType
fn default() -> LinkEntryType
Returns the “default value” for a type. Read more
source§impl Ord for LinkEntryType
impl Ord for LinkEntryType
source§fn cmp(&self, other: &LinkEntryType) -> Ordering
fn cmp(&self, other: &LinkEntryType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<LinkEntryType> for LinkEntryType
impl PartialEq<LinkEntryType> for LinkEntryType
source§fn eq(&self, other: &LinkEntryType) -> bool
fn eq(&self, other: &LinkEntryType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<LinkEntryType> for LinkEntryType
impl PartialOrd<LinkEntryType> for LinkEntryType
source§fn partial_cmp(&self, other: &LinkEntryType) -> Option<Ordering>
fn partial_cmp(&self, other: &LinkEntryType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more