pub struct PoolDiff {
pub added: Vec<String>,
pub removed: Vec<String>,
pub common: Vec<String>,
}Expand description
The result of comparing two pool snapshots.
Fields§
§added: Vec<String>Strings present in new but not in old.
removed: Vec<String>Strings present in old but not in new.
common: Vec<String>Strings present in both.
Implementations§
Source§impl PoolDiff
impl PoolDiff
Sourcepub fn compute(old: &PoolSnapshot, new: &PoolSnapshot) -> Self
pub fn compute(old: &PoolSnapshot, new: &PoolSnapshot) -> Self
Compute the diff between two snapshots.
Sourcepub fn added_count(&self) -> usize
pub fn added_count(&self) -> usize
Number of added strings.
Sourcepub fn removed_count(&self) -> usize
pub fn removed_count(&self) -> usize
Number of removed strings.
Trait Implementations§
impl Eq for PoolDiff
impl StructuralPartialEq for PoolDiff
Auto Trait Implementations§
impl Freeze for PoolDiff
impl RefUnwindSafe for PoolDiff
impl Send for PoolDiff
impl Sync for PoolDiff
impl Unpin for PoolDiff
impl UnsafeUnpin for PoolDiff
impl UnwindSafe for PoolDiff
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