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> Freeze for NodeRef<'a, V>
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