Enum dioxus_core::DomEdit [−][src]
pub enum DomEdit<'bump> {
Show 15 variants
PushRoot {
root: u64,
},
AppendChildren {
many: u32,
},
ReplaceWith {
root: u64,
m: u32,
},
InsertAfter {
root: u64,
n: u32,
},
InsertBefore {
root: u64,
n: u32,
},
Remove {
root: u64,
},
CreateTextNode {
text: &'bump str,
root: u64,
},
CreateElement {
tag: &'bump str,
root: u64,
},
CreateElementNs {
tag: &'bump str,
root: u64,
ns: &'static str,
},
CreatePlaceholder {
root: u64,
},
NewEventListener {
event_name: &'static str,
scope: ScopeId,
root: u64,
},
RemoveEventListener {
root: u64,
event: &'static str,
},
SetText {
root: u64,
text: &'bump str,
},
SetAttribute {
root: u64,
field: &'static str,
value: &'bump str,
ns: Option<&'bump str>,
},
RemoveAttribute {
root: u64,
name: &'static str,
},
}Expand description
A DomEdit represents a serialized form of the VirtualDom’s trait-based API. This allows streaming edits across the
network or through FFI boundaries.
Variants
PushRoot
Fields
root: u64AppendChildren
Fields
many: u32ReplaceWith
InsertAfter
InsertBefore
Remove
Fields
root: u64CreateTextNode
CreateElement
CreateElementNs
CreatePlaceholder
Fields
root: u64