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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.