pub struct NoOpMutations;Expand description
A struct that ignores all mutations
Trait Implementations§
Source§impl WriteMutations for NoOpMutations
impl WriteMutations for NoOpMutations
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 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 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
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
Auto Trait Implementations§
impl Freeze for NoOpMutations
impl RefUnwindSafe for NoOpMutations
impl Send for NoOpMutations
impl Sync for NoOpMutations
impl Unpin for NoOpMutations
impl UnsafeUnpin 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<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.