pub struct NoOpMutations;
Expand description
A struct that ignores all mutations
Trait Implementations§
Source§impl WriteMutations for NoOpMutations
impl WriteMutations for NoOpMutations
Source§fn append_children(&mut self, _: ElementId, _: usize)
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)
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)
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)
fn create_text_node(&mut self, _: &str, _: ElementId)
Create a node specifically for text with the given value Read more
Source§fn load_template(&mut self, _: Template, _: usize, _: ElementId)
fn load_template(&mut self, _: Template, _: 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)
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)
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)
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)
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,
)
fn set_attribute( &mut self, _: &'static str, _: Option<&'static str>, _: &AttributeValue, _: ElementId, )
Set the value of a node’s attribute. Read more
Source§fn create_event_listener(&mut self, _: &'static str, _: ElementId)
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)
fn remove_event_listener(&mut self, _: &'static str, _: ElementId)
Remove an existing Event Listener. Read more
Source§fn remove_node(&mut self, _: ElementId)
fn remove_node(&mut self, _: ElementId)
Remove a particular node from the DOM Read more
Auto Trait Implementations§
impl Freeze for NoOpMutations
impl RefUnwindSafe for NoOpMutations
impl Send for NoOpMutations
impl Sync for NoOpMutations
impl Unpin for NoOpMutations
impl UnwindSafe for NoOpMutations
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<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.