pub struct ConfigurationDifference { /* private fields */ }Expand description
One difference between the base side and another.
Implementations§
Source§impl ConfigurationDifference
impl ConfigurationDifference
Sourcepub const fn kind(&self) -> DifferenceKind
pub const fn kind(&self) -> DifferenceKind
The kind of difference.
Sourcepub fn base(&self) -> &[usize]
pub fn base(&self) -> &[usize]
The positions, among the base side’s findings, of the findings involved.
Sourcepub fn other(&self) -> &[usize]
pub fn other(&self) -> &[usize]
The positions, among the other side’s findings, of the findings involved.
Sourcepub const fn correspondence(&self) -> Option<Correspondence>
pub const fn correspondence(&self) -> Option<Correspondence>
How the findings are paired; None for an added or removed finding.
Sourcepub const fn change_bits(&self) -> u8
pub const fn change_bits(&self) -> u8
The changed attributes as a bit set: bit 0 is range, then type, detector, confidence, action and reason.
Sourcepub fn changes(&self) -> impl Iterator<Item = &'static str> + '_
pub fn changes(&self) -> impl Iterator<Item = &'static str> + '_
The attributes that changed, (in the order range, type, detector, confidence, action, reason); empty unless the
kind is DifferenceKind::Changed.
Trait Implementations§
Source§impl Clone for ConfigurationDifference
impl Clone for ConfigurationDifference
Source§impl Debug for ConfigurationDifference
impl Debug for ConfigurationDifference
impl Eq for ConfigurationDifference
Source§impl PartialEq for ConfigurationDifference
impl PartialEq for ConfigurationDifference
impl StructuralPartialEq for ConfigurationDifference
Auto Trait Implementations§
impl Freeze for ConfigurationDifference
impl RefUnwindSafe for ConfigurationDifference
impl Send for ConfigurationDifference
impl Sync for ConfigurationDifference
impl Unpin for ConfigurationDifference
impl UnsafeUnpin for ConfigurationDifference
impl UnwindSafe for ConfigurationDifference
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