Struct dioxus_native_core::real_dom::NodeRef
source · pub struct NodeRef<'a, V: FromAnyValue + Send + Sync = ()> { /* private fields */ }Expand description
An immutable reference to a node in a RealDom
Trait Implementations§
source§impl<'a, V: FromAnyValue + Send + Sync> NodeImmutable<V> for NodeRef<'a, V>
impl<'a, V: FromAnyValue + Send + Sync> NodeImmutable<V> for NodeRef<'a, V>
source§fn get<'a, T: Component + Sync + Send>(&'a self) -> Option<ViewEntry<'a, T>>
fn get<'a, T: Component + Sync + Send>(&'a self) -> Option<ViewEntry<'a, T>>
Get a component from the current node
source§fn children_ids_advanced(
&self,
id: NodeId,
enter_shadow_dom: bool
) -> Vec<NodeId>
fn children_ids_advanced( &self, id: NodeId, enter_shadow_dom: bool ) -> Vec<NodeId>
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
impl<'a, V: FromAnyValue + Send + Sync> Copy for NodeRef<'a, V>
Auto Trait Implementations§
impl<'a, V = ()> !RefUnwindSafe for NodeRef<'a, V>
impl<'a, V> Send for NodeRef<'a, V>
impl<'a, V> Sync for NodeRef<'a, V>
impl<'a, V> Unpin for NodeRef<'a, V>
impl<'a, V = ()> !UnwindSafe for NodeRef<'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