pub struct DomPatch {
pub patch_path: TreePath,
pub target_element: DomNode,
pub target_parent: DomNode,
pub patch_variant: PatchVariant,
}
Expand description
a Patch where the virtual nodes are all created in the document. This is necessary since the created Node doesn’t contain references as opposed to Patch which contains reference to the vdom, which makes it hard to be included in a struct
Fields§
§patch_path: TreePath
The path to traverse to get to the target_element
target_element: DomNode
the target node
target_parent: DomNode
the parent element of the target node
patch_variant: PatchVariant
the patch variant
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DomPatch
impl !RefUnwindSafe for DomPatch
impl !Send for DomPatch
impl !Sync for DomPatch
impl Unpin for DomPatch
impl !UnwindSafe for DomPatch
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