pub struct DeltaEncoder { /* private fields */ }Expand description
Delta encoder for computing and encoding delta operations
Implementations§
Source§impl DeltaEncoder
impl DeltaEncoder
Sourcepub fn with_config(config: DeltaConfig) -> Self
pub fn with_config(config: DeltaConfig) -> Self
Creates a delta encoder with custom configuration
Sourcepub fn compute_delta(
&self,
old: &LnmpRecord,
new: &LnmpRecord,
) -> Result<Vec<DeltaOp>, DeltaError>
pub fn compute_delta( &self, old: &LnmpRecord, new: &LnmpRecord, ) -> Result<Vec<DeltaOp>, DeltaError>
Sourcepub fn encode_delta(&self, ops: &[DeltaOp]) -> Result<Vec<u8>, DeltaError>
pub fn encode_delta(&self, ops: &[DeltaOp]) -> Result<Vec<u8>, DeltaError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeltaEncoder
impl RefUnwindSafe for DeltaEncoder
impl Send for DeltaEncoder
impl Sync for DeltaEncoder
impl Unpin for DeltaEncoder
impl UnwindSafe for DeltaEncoder
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