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: u64

AppendChildren

Fields

many: u32

ReplaceWith

Fields

root: u64
m: u32

InsertAfter

Fields

root: u64
n: u32

InsertBefore

Fields

root: u64
n: u32

Remove

Fields

root: u64

CreateTextNode

Fields

text: &'bump str
root: u64

CreateElement

Fields

tag: &'bump str
root: u64

CreateElementNs

Fields

tag: &'bump str
root: u64
ns: &'static str

CreatePlaceholder

Fields

root: u64

NewEventListener

Fields

event_name: &'static str
scope: ScopeId
root: u64

RemoveEventListener

Fields

root: u64
event: &'static str

SetText

Fields

root: u64
text: &'bump str

SetAttribute

Fields

root: u64
field: &'static str
value: &'bump str
ns: Option<&'bump str>

RemoveAttribute

Fields

root: u64
name: &'static str

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.