pub struct NodeRef<'a, V: FromAnyValue + Send + Sync = ()> { /* private fields */ }Expand description
An immutable reference to a node in a RealDom
Trait Implementations§
impl<V: FromAnyValue + Send + Sync> Copy for NodeRef<'_, V>
Source§impl<V: FromAnyValue + Send + Sync> NodeImmutable<V> for NodeRef<'_, V>
impl<V: FromAnyValue + Send + Sync> NodeImmutable<V> for NodeRef<'_, 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
Auto Trait Implementations§
impl<'a, V = ()> !RefUnwindSafe for NodeRef<'a, V>
impl<'a, V = ()> !UnwindSafe for NodeRef<'a, V>
impl<'a, V> Freeze 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> UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§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.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§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>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.