pub struct DmgStats {
pub version: u32,
pub sector_count: u64,
pub partition_count: usize,
pub total_uncompressed: u64,
pub total_compressed: u64,
pub data_fork_length: u64,
}Expand description
Statistics about a DMG file
Fields§
§version: u32DMG version
sector_count: u64Total sector count
partition_count: usizeNumber of partitions
total_uncompressed: u64Total uncompressed size in bytes
total_compressed: u64Total compressed size in bytes
data_fork_length: u64Data fork length
Implementations§
Source§impl DmgStats
impl DmgStats
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Calculate compression ratio
Sourcepub fn space_savings(&self) -> f64
pub fn space_savings(&self) -> f64
Calculate space savings percentage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DmgStats
impl RefUnwindSafe for DmgStats
impl Send for DmgStats
impl Sync for DmgStats
impl Unpin for DmgStats
impl UnsafeUnpin for DmgStats
impl UnwindSafe for DmgStats
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