Type Alias freya_testing::prelude::DioxusNode

source ·
pub type DioxusNode<'a> = NodeRef<'a, CustomAttributeValues>;

Aliased Type§

struct DioxusNode<'a> { /* private fields */ }

Trait Implementations

source§

impl<'a, V> Clone for NodeRef<'a, V>
where V: FromAnyValue + Send + Sync,

source§

fn clone(&self) -> NodeRef<'a, V>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl NodeAccessibility for NodeRef<'_, CustomAttributeValues>

source§

fn get_inner_texts(&self) -> Option<String>

Return the first text node from this Node

source§

fn get_accessibility_children(&self) -> Vec<NodeId>

Collect all descendant accessibility node ids

source§

fn get_accessibility_id(&self) -> Option<NodeId>

source§

impl<'a, V> NodeImmutable<V> for NodeRef<'a, V>
where V: FromAnyValue + Send + Sync,

source§

fn real_dom(&self) -> &RealDom<V>

Get the real dom this node was created in
source§

fn id(&self) -> EntityId

Get the id of the current node
source§

fn node_type(&self) -> ViewEntry<'_, NodeType<V>>

Get the type of the current node
source§

fn get<'a, T>(&'a self) -> Option<ViewEntry<'a, T>>
where T: Component + Sync + Send,

Get a component from the current node
source§

fn children_ids_advanced( &self, id: EntityId, enter_shadow_dom: bool, ) -> Vec<EntityId>

Get the ids of the children of the current node, if enter_shadow_dom is true and the current node is a shadow slot, the ids of the nodes under the node the shadow slot is attached to will be returned
source§

fn child_ids(&self) -> Vec<EntityId>

Get the ids of the children of the current node
source§

fn children(&self) -> Vec<NodeRef<'_, V>>

Get the children of the current node
source§

fn parent_id(&self) -> Option<EntityId>

Get the id of the parent of the current node
source§

fn parent(&self) -> Option<NodeRef<'_, V>>

Get the parent of the current node
source§

fn height(&self) -> u16

Get the height of the current node in the tree (the number of nodes between the current node and the root)
source§

impl<'a, V> Copy for NodeRef<'a, V>
where V: FromAnyValue + Send + Sync,