Struct freya_native_core::dioxus::DioxusState
source · pub struct DioxusState { /* private fields */ }
Expand description
The state of the Dioxus integration with the RealDom
Implementations§
source§impl DioxusState
impl DioxusState
sourcepub fn create<V: FromAnyValue + Send + Sync>(rdom: &mut RealDom<V>) -> Self
pub fn create<V: FromAnyValue + Send + Sync>(rdom: &mut RealDom<V>) -> Self
Initialize the DioxusState in the RealDom
sourcepub fn element_to_node_id(&self, element_id: ElementId) -> NodeId
pub fn element_to_node_id(&self, element_id: ElementId) -> NodeId
Convert an ElementId to a NodeId
sourcepub fn try_element_to_node_id(&self, element_id: ElementId) -> Option<NodeId>
pub fn try_element_to_node_id(&self, element_id: ElementId) -> Option<NodeId>
Attempt to convert an ElementId to a NodeId. This will return None if the ElementId is not in the RealDom.
sourcepub fn create_mutation_writer<'a, V: FromAnyValue + Send + Sync>(
&'a mut self,
rdom: &'a mut RealDom<V>,
) -> DioxusNativeCoreMutationWriter<'a, V>
pub fn create_mutation_writer<'a, V: FromAnyValue + Send + Sync>( &'a mut self, rdom: &'a mut RealDom<V>, ) -> DioxusNativeCoreMutationWriter<'a, V>
Create a mutation writer for the RealDom
Auto Trait Implementations§
impl Freeze for DioxusState
impl RefUnwindSafe for DioxusState
impl Send for DioxusState
impl Sync for DioxusState
impl Unpin for DioxusState
impl UnwindSafe for DioxusState
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.