pub struct AllocatedGrain {
pub start_lba: u64,
pub sector_count: u64,
}Expand description
A contiguous range of allocated (non-sparse) sectors in a VMDK virtual disk.
Returned by VmdkReader::iter_allocated_grains.
Fields§
§start_lba: u64First LBA (512-byte sector number) of this allocated range.
sector_count: u64Number of sectors in this range (always a multiple of grain_size_sectors).
Trait Implementations§
Source§impl Clone for AllocatedGrain
impl Clone for AllocatedGrain
Source§fn clone(&self) -> AllocatedGrain
fn clone(&self) -> AllocatedGrain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AllocatedGrain
impl Debug for AllocatedGrain
impl Eq for AllocatedGrain
Source§impl PartialEq for AllocatedGrain
impl PartialEq for AllocatedGrain
Source§fn eq(&self, other: &AllocatedGrain) -> bool
fn eq(&self, other: &AllocatedGrain) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AllocatedGrain
Auto Trait Implementations§
impl Freeze for AllocatedGrain
impl RefUnwindSafe for AllocatedGrain
impl Send for AllocatedGrain
impl Sync for AllocatedGrain
impl Unpin for AllocatedGrain
impl UnsafeUnpin for AllocatedGrain
impl UnwindSafe for AllocatedGrain
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