pub struct DeltaMetadata {
pub version_from: Version,
pub version_to: Version,
pub delta_size: usize,
pub full_size: usize,
}Expand description
Metadata describing a delta update between two versions.
Fields§
§version_from: VersionVersion this delta upgrades FROM
version_to: VersionVersion this delta upgrades TO
delta_size: usizeSize of the delta in bytes
full_size: usizeSize of the full package in bytes (for comparison)
Implementations§
Source§impl DeltaMetadata
impl DeltaMetadata
Sourcepub fn savings_ratio(&self) -> f64
pub fn savings_ratio(&self) -> f64
Return the space savings ratio (0.0 = no savings, 1.0 = 100% savings).
Trait Implementations§
Source§impl Clone for DeltaMetadata
impl Clone for DeltaMetadata
Source§fn clone(&self) -> DeltaMetadata
fn clone(&self) -> DeltaMetadata
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeltaMetadata
impl RefUnwindSafe for DeltaMetadata
impl Send for DeltaMetadata
impl Sync for DeltaMetadata
impl Unpin for DeltaMetadata
impl UnwindSafe for DeltaMetadata
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)