pub struct NoOpMutations;
Expand description

A struct that ignores all mutations

Trait Implementations§

source§

impl WriteMutations for NoOpMutations

source§

fn register_template(&mut self, _: Template)

Register a template with the renderer
source§

fn append_children(&mut self, _: ElementId, _: usize)

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

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

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

fn create_placeholder(&mut self, _: ElementId)

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

fn create_text_node(&mut self, _: &str, _: ElementId)

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

fn hydrate_text_node(&mut self, _: &'static [u8], _: &str, _: ElementId)

Hydrate an existing text node at the given path with the given text. Read more
source§

fn load_template(&mut self, _: &'static str, _: usize, _: ElementId)

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

fn replace_node_with(&mut self, _: ElementId, _: 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, _: &'static [u8], _: 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, _: ElementId, _: usize)

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

fn insert_nodes_before(&mut self, _: ElementId, _: usize)

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

fn set_attribute( &mut self, _: &'static str, _: Option<&'static str>, _: &AttributeValue, _: ElementId )

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

fn set_node_text(&mut self, _: &str, _: ElementId)

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

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

Create a new Event Listener. Read more
source§

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

Remove an existing Event Listener. Read more
source§

fn remove_node(&mut self, _: ElementId)

Remove a particular node from the DOM Read more
source§

fn push_root(&mut self, _: ElementId)

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

fn swap_subtree(&mut self, _subtree_index: usize)

Swap to a new subtree
source§

fn mark_scope_dirty(&mut self, _scope_id: ScopeId)

Mark a scope as dirty

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<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>,

§

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>,

§

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