Struct embedded_sdmmc::ClusterId
source · pub struct ClusterId(/* private fields */);
Expand description
Identifies a cluster on disk.
A cluster is a consecutive group of blocks. Each cluster has a a numeric ID. Some numeric IDs are reserved for special purposes.
Implementations§
source§impl ClusterId
impl ClusterId
sourcepub const ROOT_DIR: ClusterId = _
pub const ROOT_DIR: ClusterId = _
Magic value indicating the cluster holding the root directory (which doesn’t have a number in FAT16 as there’s a reserved region).
sourcepub const END_OF_FILE: ClusterId = _
pub const END_OF_FILE: ClusterId = _
Magic value indicating that the cluster is allocated and is the final cluster for the file
Trait Implementations§
source§impl AddAssign<u32> for ClusterId
impl AddAssign<u32> for ClusterId
source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the
+=
operation. Read moresource§impl Ord for ClusterId
impl Ord for ClusterId
source§impl PartialEq for ClusterId
impl PartialEq for ClusterId
source§impl PartialOrd for ClusterId
impl PartialOrd for ClusterId
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 moreimpl Copy for ClusterId
impl Eq for ClusterId
impl StructuralPartialEq for ClusterId
Auto Trait Implementations§
impl RefUnwindSafe for ClusterId
impl Send for ClusterId
impl Sync for ClusterId
impl Unpin for ClusterId
impl UnwindSafe for ClusterId
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