Struct embedded_sdmmc::Attributes
source · pub struct Attributes(_);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 · 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 Attributes
impl Debug for Attributes
source§impl Ord for Attributes
impl Ord for Attributes
source§fn cmp(&self, other: &Attributes) -> Ordering
fn cmp(&self, other: &Attributes) -> 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<Attributes> for Attributes
impl PartialEq<Attributes> for Attributes
source§fn eq(&self, other: &Attributes) -> bool
fn eq(&self, other: &Attributes) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<Attributes> for Attributes
impl PartialOrd<Attributes> for Attributes
source§fn partial_cmp(&self, other: &Attributes) -> Option<Ordering>
fn partial_cmp(&self, other: &Attributes) -> 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