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>

source§

fn register_template(&mut self, template: Template)

Register a template with the renderer
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 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)

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
§

fn swap_subtree(&mut self, _subtree_index: usize)

Swap to a new subtree
§

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.

§

impl<T> Instrument for T

§

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

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

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> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

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

§

fn super_from(input: T) -> O

Convert from a type to another type.
§

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

§

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

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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