pub struct Mutations {
pub edits: Vec<Mutation>,
}Expand description
A static list of mutations that can be applied to the DOM. Note: this list does not contain any Any attribute values
Fields§
§edits: Vec<Mutation>Any mutations required to patch the renderer to match the layout of the VirtualDom
Trait Implementations§
impl StructuralPartialEq for Mutations
Source§impl WriteMutations for Mutations
impl WriteMutations for Mutations
Source§fn set_id(&mut self, id: ElementId)
fn set_id(&mut self, id: ElementId)
Register the current top node under
id, leaving it on the stack. Read moreSource§fn append_children(&mut self, m: usize)
fn append_children(&mut self, m: usize)
Append the top
m nodes to the parent below them. Leaves the parent
on the stack.Source§fn replace_with(&mut self, m: usize)
fn replace_with(&mut self, m: usize)
Replace the target below the top
m nodes with those nodes. Consumes
the target and replacement nodes.Source§fn insert_after(&mut self, m: usize)
fn insert_after(&mut self, m: usize)
Insert the top
m nodes after the anchor below them. Leaves the anchor
on the stack.Source§fn insert_before(&mut self, m: usize)
fn insert_before(&mut self, m: usize)
Insert the top
m nodes before the anchor below them. Leaves the anchor
on the stack.Source§fn create_element(&mut self, tag: &str, ns: Option<&str>)
fn create_element(&mut self, tag: &str, ns: Option<&str>)
Create an element and push it onto the stack.
Source§fn create_text(&mut self, value: &str)
fn create_text(&mut self, value: &str)
Create a text node and push it onto the stack.
Source§fn add_event_listener(&mut self, name: &str)
fn add_event_listener(&mut self, name: &str)
Create a new Event Listener. Read more
Source§fn remove_event_listener(&mut self, name: &str)
fn remove_event_listener(&mut self, name: &str)
Remove an existing Event Listener. Read more
Source§fn set_attribute(
&mut self,
name: &str,
ns: Option<&str>,
value: &AttributeValue,
)
fn set_attribute( &mut self, name: &str, ns: Option<&str>, value: &AttributeValue, )
Set the value of a node’s attribute. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Mutations
impl !Send for Mutations
impl !Sync for Mutations
impl !UnwindSafe for Mutations
impl Freeze for Mutations
impl Unpin for Mutations
impl UnsafeUnpin for Mutations
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<W> MultiWriter for Wwhere
W: WriteMutations,
impl<W> MultiWriter for Wwhere
W: WriteMutations,
Source§fn writer_for(&mut self, id: RenderTargetId) -> Option<&mut W>
fn writer_for(&mut self, id: RenderTargetId) -> Option<&mut W>
The writer for
id, or None for a target with no attached host.Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.