pub struct WisdomMergeResult {
pub added: usize,
pub replaced: usize,
pub kept_existing: usize,
pub skipped_invalid: usize,
pub format_version: u32,
}Expand description
Statistics returned from a wisdom merge operation.
Returned by merge_from_string, merge_from_file, and the
corresponding WisdomCache::merge_string method.
Fields§
§added: usizeNumber of entries inserted because they were absent from the cache.
replaced: usizeNumber of entries from the incoming data that replaced existing ones because they had a lower cost.
kept_existing: usizeNumber of entries from the incoming data that were discarded because the existing cache entry already had a lower or equal cost.
skipped_invalid: usizeNumber of entries skipped because of invalid / corrupt data.
format_version: u32Format version found in the wisdom data.
Trait Implementations§
Source§impl Clone for WisdomMergeResult
impl Clone for WisdomMergeResult
Source§fn clone(&self) -> WisdomMergeResult
fn clone(&self) -> WisdomMergeResult
Returns a duplicate 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 WisdomMergeResult
impl Debug for WisdomMergeResult
Source§impl PartialEq for WisdomMergeResult
impl PartialEq for WisdomMergeResult
impl Eq for WisdomMergeResult
impl StructuralPartialEq for WisdomMergeResult
Auto Trait Implementations§
impl Freeze for WisdomMergeResult
impl RefUnwindSafe for WisdomMergeResult
impl Send for WisdomMergeResult
impl Sync for WisdomMergeResult
impl Unpin for WisdomMergeResult
impl UnsafeUnpin for WisdomMergeResult
impl UnwindSafe for WisdomMergeResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more