pub struct CompareDifference { /* private fields */ }Expand description
One package-relative difference between checked-in and regenerated derived output.
Implementations§
Source§impl CompareDifference
impl CompareDifference
Sourcepub fn path(&self) -> &RelativePath
pub fn path(&self) -> &RelativePath
Returns the package-relative differing path.
Sourcepub fn kind(&self) -> DifferenceKind
pub fn kind(&self) -> DifferenceKind
Returns why the path differs from regeneration.
Sourcepub fn repair_command(&self) -> String
pub fn repair_command(&self) -> String
Returns the exact command that repairs this package’s generated output.
Sourcepub fn rule_source(&self) -> &'static str
pub fn rule_source(&self) -> &'static str
Returns the normative source of the byte-identity comparison rule.
Trait Implementations§
Source§impl Debug for CompareDifference
impl Debug for CompareDifference
impl Eq for CompareDifference
Source§impl PartialEq for CompareDifference
impl PartialEq for CompareDifference
impl StructuralPartialEq for CompareDifference
Auto Trait Implementations§
impl Freeze for CompareDifference
impl RefUnwindSafe for CompareDifference
impl Send for CompareDifference
impl Sync for CompareDifference
impl Unpin for CompareDifference
impl UnsafeUnpin for CompareDifference
impl UnwindSafe for CompareDifference
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.