pub enum DiffOptimizationHint {
Default,
SizeSource,
SizeTarget,
SizeValue(usize),
SizePercentage(f64),
}
Expand description
Optimization hint used in calculating change between two intermediate data.
Variants§
Default
Don’t assume any optimization.
SizeSource
Put entire new object if change information size is greater than source (old) size.
SizeTarget
Put entire new object if change information size is greater than target (new) size.
SizeValue(usize)
Put entire new object if change information size is greater than bytesize threshold.
SizePercentage(f64)
Put entire new object if change information size is greater than percentage of source size.
Trait Implementations§
source§impl Clone for DiffOptimizationHint
impl Clone for DiffOptimizationHint
source§fn clone(&self) -> DiffOptimizationHint
fn clone(&self) -> DiffOptimizationHint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DiffOptimizationHint
impl Debug for DiffOptimizationHint
source§impl Default for DiffOptimizationHint
impl Default for DiffOptimizationHint
source§fn default() -> DiffOptimizationHint
fn default() -> DiffOptimizationHint
Returns the “default value” for a type. Read more
source§impl PartialEq<DiffOptimizationHint> for DiffOptimizationHint
impl PartialEq<DiffOptimizationHint> for DiffOptimizationHint
source§fn eq(&self, other: &DiffOptimizationHint) -> bool
fn eq(&self, other: &DiffOptimizationHint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DiffOptimizationHint
impl StructuralPartialEq for DiffOptimizationHint
Auto Trait Implementations§
impl RefUnwindSafe for DiffOptimizationHint
impl Send for DiffOptimizationHint
impl Sync for DiffOptimizationHint
impl Unpin for DiffOptimizationHint
impl UnwindSafe for DiffOptimizationHint
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