Struct Mutations

Source
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§

Source§

impl Debug for Mutations

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Mutations

Source§

fn default() -> Mutations

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Mutations

Source§

fn eq(&self, other: &Mutations) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl WriteMutations for Mutations

Source§

fn append_children(&mut self, id: ElementId, m: usize)

Add these m children to the target element Read more
Source§

fn assign_node_id(&mut self, path: &'static [u8], id: ElementId)

Assign the element at the given path the target ElementId. Read more
Source§

fn create_placeholder(&mut self, id: ElementId)

Create a placeholder in the DOM that we will use later. Read more
Source§

fn create_text_node(&mut self, value: &str, id: ElementId)

Create a node specifically for text with the given value Read more
Source§

fn load_template(&mut self, _template: Template, index: usize, id: ElementId)

Load and clone an existing node from a template saved under that specific name Read more
Source§

fn replace_node_with(&mut self, id: ElementId, m: usize)

Replace the target element (given by its ID) with the topmost m nodes on the stack Read more
Source§

fn replace_placeholder_with_nodes(&mut self, path: &'static [u8], m: usize)

Replace an existing element in the template at the given path with the m nodes on the stack Read more
Source§

fn insert_nodes_after(&mut self, id: ElementId, m: usize)

Insert a number of nodes after a given node. Read more
Source§

fn insert_nodes_before(&mut self, id: ElementId, m: usize)

Insert a number of nodes before a given node. Read more
Source§

fn set_attribute( &mut self, name: &'static str, ns: Option<&'static str>, value: &AttributeValue, id: ElementId, )

Set the value of a node’s attribute. Read more
Source§

fn set_node_text(&mut self, value: &str, id: ElementId)

Set the text content of a node. Read more
Source§

fn create_event_listener(&mut self, name: &'static str, id: ElementId)

Create a new Event Listener. Read more
Source§

fn remove_event_listener(&mut self, name: &'static str, id: ElementId)

Remove an existing Event Listener. Read more
Source§

fn remove_node(&mut self, id: ElementId)

Remove a particular node from the DOM Read more
Source§

fn push_root(&mut self, id: ElementId)

Push the given root node onto our stack. Read more
Source§

impl StructuralPartialEq for Mutations

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<Ret> SpawnIfAsync<(), Ret> for Ret

Source§

fn spawn(self) -> Ret

Spawn the value into the dioxus runtime if it is an async block
Source§

impl<T, O> SuperFrom<T> for O
where O: From<T>,

Source§

fn super_from(input: T) -> O

Convert from a type to another type.
Source§

impl<T, O, M> SuperInto<O, M> for T
where O: SuperFrom<T, M>,

Source§

fn super_into(self) -> O

Convert from a type to another type.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more