pub struct ExprDiff {
pub entries: Vec<DiffEntry>,
}Expand description
Complete diff result between two expressions.
Fields§
§entries: Vec<DiffEntry>All diff entries found during comparison.
Implementations§
Source§impl ExprDiff
impl ExprDiff
Sourcepub fn is_identical(&self) -> bool
pub fn is_identical(&self) -> bool
Returns true if the two expressions are structurally identical.
Sourcepub fn change_count(&self) -> usize
pub fn change_count(&self) -> usize
Count the number of actual changes (excluding Unchanged entries).
Sourcepub fn modifications(&self) -> Vec<&DiffEntry>
pub fn modifications(&self) -> Vec<&DiffEntry>
Filter to only modification entries (TypeChanged or ParameterChanged).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExprDiff
impl<'de> Deserialize<'de> for ExprDiff
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExprDiff
impl RefUnwindSafe for ExprDiff
impl Send for ExprDiff
impl Sync for ExprDiff
impl Unpin for ExprDiff
impl UnsafeUnpin for ExprDiff
impl UnwindSafe for ExprDiff
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