pub struct SkipDiff {
pub skip_attrs: SkipAttrs,
pub children: Vec<SkipDiff>,
}
Expand description
if the expression evaluates to true, diffing at this node will be skipped entirely
Fields§
§skip_attrs: SkipAttrs
shall skip or not
children: Vec<SkipDiff>
children skip diff
Implementations§
source§impl SkipDiff
impl SkipDiff
sourcepub fn in_path(&self, path: &TreePath) -> Option<&SkipDiff>
pub fn in_path(&self, path: &TreePath) -> Option<&SkipDiff>
return SkipDiff in this path location
sourcepub fn shall_skip_attributes(&self) -> bool
pub fn shall_skip_attributes(&self) -> bool
check if shall skip diffing attributes at this path if the path does not coincide in this skip diff, then by default it is skipped
sourcepub fn is_skippable_recursive(&self) -> bool
pub fn is_skippable_recursive(&self) -> bool
return true if this skip diff and its children can be skipped
sourcepub fn shall_skip_node(&self) -> bool
pub fn shall_skip_node(&self) -> bool
sourcepub fn collapse_children(self) -> SkipDiff
pub fn collapse_children(self) -> SkipDiff
collapse into 1 skip_if if all the children is skippable
Trait Implementations§
source§impl PartialEq for SkipDiff
impl PartialEq for SkipDiff
impl StructuralPartialEq for SkipDiff
Auto Trait Implementations§
impl Freeze for SkipDiff
impl RefUnwindSafe for SkipDiff
impl Send for SkipDiff
impl Sync for SkipDiff
impl Unpin for SkipDiff
impl UnwindSafe for SkipDiff
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