pub struct Bmap { /* private fields */ }
Implementations§
Source§impl Bmap
impl Bmap
pub fn builder() -> BmapBuilder
Sourcepub fn image_size(&self) -> u64
pub fn image_size(&self) -> u64
Image size in bytes
Sourcepub const fn block_size(&self) -> u64
pub const fn block_size(&self) -> u64
block size in bytes
Sourcepub fn mapped_blocks(&self) -> u64
pub fn mapped_blocks(&self) -> u64
number of mapped blocks in the image
Sourcepub fn checksum_type(&self) -> HashType
pub fn checksum_type(&self) -> HashType
checksum type used
Sourcepub fn block_map(&self) -> impl ExactSizeIterator + Iterator<Item = &BlockRange>
pub fn block_map(&self) -> impl ExactSizeIterator + Iterator<Item = &BlockRange>
Iterator over the block map
Sourcepub fn total_mapped_size(&self) -> u64
pub fn total_mapped_size(&self) -> u64
Total mapped size in bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bmap
impl RefUnwindSafe for Bmap
impl Send for Bmap
impl Sync for Bmap
impl Unpin for Bmap
impl UnwindSafe for Bmap
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