pub enum ChangeType {
Add,
Remove,
Edit,
Child,
}Expand description
The kind of a Change, independent of its payload. Used by the OR
fan-in collapse (push_accumulated_changes, 06 §3.5): the dedup decision
keys off the fan-out’s original change type (was it an Add/Remove/Edit/
Child that entered the fan), so we need to name the type without owning a
Change. Mirrors the JS change.type string discriminant.
Variants§
Trait Implementations§
Source§impl Clone for ChangeType
impl Clone for ChangeType
Source§fn clone(&self) -> ChangeType
fn clone(&self) -> ChangeType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChangeType
impl Debug for ChangeType
Source§impl PartialEq for ChangeType
impl PartialEq for ChangeType
impl Copy for ChangeType
impl Eq for ChangeType
impl StructuralPartialEq for ChangeType
Auto Trait Implementations§
impl Freeze for ChangeType
impl RefUnwindSafe for ChangeType
impl Send for ChangeType
impl Sync for ChangeType
impl Unpin for ChangeType
impl UnsafeUnpin for ChangeType
impl UnwindSafe for ChangeType
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