pub struct Attributes(/* private fields */);
Expand description
Indicates whether a directory entry is read-only, a directory, a volume label, etc.
Implementations§
Source§impl Attributes
impl Attributes
Sourcepub const ARCHIVE: u8 = 32u8
pub const ARCHIVE: u8 = 32u8
Indicates this file needs archiving (i.e. has been modified since last archived).
Sourcepub const LFN: u8 = 15u8
pub const LFN: u8 = 15u8
This set of flags indicates the file is actually a long file name fragment.
Sourcepub fn is_read_only(self) -> bool
pub fn is_read_only(self) -> bool
Does this file has the read-only attribute set?
Does this file has the hidden attribute set?
Sourcepub fn is_directory(self) -> bool
pub fn is_directory(self) -> bool
Does this entry point at a directory?
Sourcepub fn is_archive(self) -> bool
pub fn is_archive(self) -> bool
Does this need archiving?
Trait Implementations§
Source§impl Clone for Attributes
impl Clone for Attributes
Source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Attributes
impl Debug for Attributes
Source§impl Ord for Attributes
impl Ord for Attributes
Source§impl PartialEq for Attributes
impl PartialEq for Attributes
Source§impl PartialOrd for Attributes
impl PartialOrd for Attributes
Source§fn partial_cmp(&self, other: &Attributes) -> Option<Ordering>
fn partial_cmp(&self, other: &Attributes) -> Option<Ordering>
impl Copy for Attributes
impl Eq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
)Source§impl<Q, K> Comparable<K> for Qwhere
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Comparable<K> for Qwhere
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
Source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.