pub struct ChunkSet {
pub chunks: [ChunkPartition; 16],
pub count: usize,
pub total_size: u64,
pub bytes_written: u64,
}Expand description
Collection of chunk partitions for an ISO
Fields§
§chunks: [ChunkPartition; 16]Partitions for each chunk
count: usizeNumber of chunks
total_size: u64Total ISO size
bytes_written: u64Total bytes written
Implementations§
Source§impl ChunkSet
impl ChunkSet
Sourcepub fn add(&mut self, chunk: ChunkPartition) -> DiskResult<()>
pub fn add(&mut self, chunk: ChunkPartition) -> DiskResult<()>
Add a chunk partition
Sourcepub fn get(&self, index: usize) -> Option<&ChunkPartition>
pub fn get(&self, index: usize) -> Option<&ChunkPartition>
Get chunk by index
Sourcepub fn get_mut(&mut self, index: usize) -> Option<&mut ChunkPartition>
pub fn get_mut(&mut self, index: usize) -> Option<&mut ChunkPartition>
Get mutable chunk by index
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChunkSet
impl RefUnwindSafe for ChunkSet
impl Send for ChunkSet
impl Sync for ChunkSet
impl Unpin for ChunkSet
impl UnwindSafe for ChunkSet
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