pub struct DomDiff {
pub changed_nodes: Vec<DomChange>,
}
Fields§
§changed_nodes: Vec<DomChange>
What the actual changes nodes (not trees / subtrees) were in this diff, in order of appearance
Implementations§
Source§impl DomDiff
impl DomDiff
pub fn new(old: &CompactDom, new: &CompactDom) -> Self
Sourcepub fn format_nicely(&self, old: &CompactDom, new: &CompactDom) -> String
pub fn format_nicely(&self, old: &CompactDom, new: &CompactDom) -> String
Formats the diff into a git-like + Node1 / - Node3
form
Trait Implementations§
Source§impl Ord for DomDiff
impl Ord for DomDiff
Source§impl PartialOrd for DomDiff
impl PartialOrd for DomDiff
impl Eq for DomDiff
impl StructuralPartialEq for DomDiff
Auto Trait Implementations§
impl Freeze for DomDiff
impl RefUnwindSafe for DomDiff
impl Send for DomDiff
impl Sync for DomDiff
impl Unpin for DomDiff
impl UnwindSafe for DomDiff
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)