pub struct Delta { /* private fields */ }Expand description
A delta representing the difference between two byte sequences
Implementations§
Source§impl Delta
impl Delta
Sourcepub fn add_insert(&mut self, data: Vec<u8>)
pub fn add_insert(&mut self, data: Vec<u8>)
Sourcepub fn operations(&self) -> &[DeltaOp]
pub fn operations(&self) -> &[DeltaOp]
Gets the operations
Sourcepub fn target_size(&self) -> usize
pub fn target_size(&self) -> usize
Gets the target size
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Delta
impl<'de> Deserialize<'de> for Delta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnsafeUnpin for Delta
impl UnwindSafe for Delta
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