pub struct DioxusNativeCoreMutationWriter<'a, V: FromAnyValue + Send + Sync = ()> {
pub rdom: &'a mut RealDom<V>,
pub state: &'a mut DioxusState,
}
Expand description
A writer for mutations that can be used with the RealDom.
Fields§
§rdom: &'a mut RealDom<V>
The realdom associated with this writer
state: &'a mut DioxusState
The state associated with this writer
Trait Implementations§
source§impl<V: FromAnyValue + Send + Sync> WriteMutations for DioxusNativeCoreMutationWriter<'_, V>
impl<V: FromAnyValue + Send + Sync> WriteMutations for DioxusNativeCoreMutationWriter<'_, V>
source§fn register_template(&mut self, template: Template)
fn register_template(&mut self, template: Template)
Register a template with the renderer
source§fn append_children(&mut self, id: ElementId, m: usize)
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)
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)
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)
fn create_text_node(&mut self, value: &str, id: ElementId)
Create a node specifically for text with the given value Read more
source§fn hydrate_text_node(&mut self, path: &'static [u8], value: &str, id: ElementId)
fn hydrate_text_node(&mut self, path: &'static [u8], value: &str, id: ElementId)
Hydrate an existing text node at the given path with the given text. Read more
source§fn load_template(&mut self, name: &'static str, index: usize, id: ElementId)
fn load_template(&mut self, name: &'static str, 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)
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)
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)
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)
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,
)
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)
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)
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)
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)
fn remove_node(&mut self, id: ElementId)
Remove a particular node from the DOM Read more
§fn swap_subtree(&mut self, _subtree_index: usize)
fn swap_subtree(&mut self, _subtree_index: usize)
Swap to a new subtree
§fn mark_scope_dirty(&mut self, _scope_id: ScopeId)
fn mark_scope_dirty(&mut self, _scope_id: ScopeId)
Mark a scope as dirty
Auto Trait Implementations§
impl<'a, V> Freeze for DioxusNativeCoreMutationWriter<'a, V>
impl<'a, V = ()> !RefUnwindSafe for DioxusNativeCoreMutationWriter<'a, V>
impl<'a, V> Send for DioxusNativeCoreMutationWriter<'a, V>
impl<'a, V> Sync for DioxusNativeCoreMutationWriter<'a, V>
impl<'a, V> Unpin for DioxusNativeCoreMutationWriter<'a, V>
impl<'a, V = ()> !UnwindSafe for DioxusNativeCoreMutationWriter<'a, V>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§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>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.