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
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
§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, V> NodeImmutableDioxusExt<V> for T
impl<T, V> NodeImmutableDioxusExt<V> for T
source§fn mounted_id(&self) -> Option<ElementId>
fn mounted_id(&self) -> Option<ElementId>
Returns the id of the element that this node is mounted to.
Not all nodes are mounted to an element, only nodes with dynamic content that have been renderered will have an id.
§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.