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 PartialOrd for ClusterId
impl PartialOrd for ClusterId
impl Copy for ClusterId
impl Eq for ClusterId
impl StructuralPartialEq for ClusterId
Auto Trait Implementations§
impl Freeze for ClusterId
impl RefUnwindSafe for ClusterId
impl Send for ClusterId
impl Sync for ClusterId
impl Unpin for ClusterId
impl UnwindSafe for ClusterId
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.