pub struct Mutations {
pub added: Vec<MutationAdd>,
pub modified: Vec<MutationModified>,
pub removed: Vec<MutationRemove>,
pub moved: FxHashMap<NodeId, Vec<NodeId>>,
}Fields§
§added: Vec<MutationAdd>New elements and their final sibling indices, inserted after removals.
modified: Vec<MutationModified>Updated elements and the flags identifying which states need refreshing.
removed: Vec<MutationRemove>Elements and scope roots to remove before additions and reordering.
moved: FxHashMap<NodeId, Vec<NodeId>>Final child order for reordered parents, applied after removals and additions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Mutations
impl !Send for Mutations
impl !Sync for Mutations
impl !UnwindSafe for Mutations
impl Forget for Mutations
impl Freeze for Mutations
impl Unpin for Mutations
impl UnsafeUnpin for Mutations
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more