pub struct Mapping {
pub source: MappingSource,
pub cluster_offset: Option<u64>,
pub compressed_length: Option<usize>,
pub copied: bool,
}Expand description
Mapping represents the mapping of a cluster to a source of data Mapping and L2Entry can be converted to each other.
Fields§
§source: MappingSourceWhere/how to get the mapped data from
cluster_offset: Option<u64>Offset in source from which to read the whole cluster data; for compressed clusters, this
is generally not aligned to a cluster boundary
compressed_length: Option<usize>For compressed data: Upper limit on the number of bytes that comprise the compressed data
copied: boolIf this is true, cluster_offset may be written to, and doing so will only change this
cluster’s data (note that for zero clusters, writing to a COPIED cluster will not change
the visible data: first, the mapping must be changed to be a data cluster)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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