Struct dioxus_core::Mutations
source · [−]pub struct Mutations<'a> {
pub edits: Vec<DomEdit<'a>>,
pub dirty_scopes: FxHashSet<ScopeId>,
pub refs: Vec<NodeRefMutation<'a>>,
}
Expand description
Mutations
This method returns “mutations” - IE the necessary changes to get the RealDOM to match the VirtualDOM. It also includes a list of NodeRefs that need to be applied and effects that need to be triggered after the RealDOM has applied the edits.
Mutations are the only link between the RealDOM and the VirtualDOM.
Fields
edits: Vec<DomEdit<'a>>
The list of edits that need to be applied for the RealDOM to match the VirtualDOM.
dirty_scopes: FxHashSet<ScopeId>
The list of Scopes that were diffed, created, and removed during the Diff process.
refs: Vec<NodeRefMutation<'a>>
The list of nodes to connect to the RealDOM.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Mutations<'a>
impl<'a> !Send for Mutations<'a>
impl<'a> !Sync for Mutations<'a>
impl<'a> Unpin for Mutations<'a>
impl<'a> !UnwindSafe for Mutations<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more