pub enum DynamicNode {
Component(VComponent),
Text(VText),
Fragment(Vec<VNode>),
}Expand description
A node created at runtime
This node’s index in the DynamicNode list on VNode should match its respective Dynamic index
Variants§
Component(VComponent)
A component node
Most of the time, Dioxus will actually know which component this is as compile time, but the props and assigned scope are dynamic.
The actual VComponent can be dynamic between two VNodes, though, allowing implementations to swap the render function at runtime
Text(VText)
A text node
Fragment(Vec<VNode>)
A list of VNodes.
Note that this is not a list of dynamic nodes. These must be VNodes and created through conditional rendering or iterators.
Implementations§
Source§impl DynamicNode
impl DynamicNode
Sourcepub fn make_node<'c, I>(into: impl IntoDynNode<I> + 'c) -> DynamicNode
pub fn make_node<'c, I>(into: impl IntoDynNode<I> + 'c) -> DynamicNode
Convert any item that implements IntoDynNode into a DynamicNode
Trait Implementations§
Source§impl Clone for DynamicNode
impl Clone for DynamicNode
Source§impl Debug for DynamicNode
impl Debug for DynamicNode
Source§impl Default for DynamicNode
impl Default for DynamicNode
Source§impl IntoDynNode for DynamicNode
impl IntoDynNode for DynamicNode
Source§fn into_dyn_node(self) -> DynamicNode
fn into_dyn_node(self) -> DynamicNode
Consume this item and produce a DynamicNode
Auto Trait Implementations§
impl !RefUnwindSafe for DynamicNode
impl !Send for DynamicNode
impl !Sync for DynamicNode
impl !UnwindSafe for DynamicNode
impl Freeze for DynamicNode
impl Unpin for DynamicNode
impl UnsafeUnpin for DynamicNode
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<N, Marker> IntoViewChild<DynamicViewChildMarker<Marker>> for Nwhere
N: IntoDynNode<Marker>,
impl<N, Marker> IntoViewChild<DynamicViewChildMarker<Marker>> for Nwhere
N: IntoDynNode<Marker>,
Source§type Output = DynamicNodeBuilder<N, Marker>
type Output = DynamicNodeBuilder<N, Marker>
The typed view contributed by this child.
Source§fn into_child(
self,
) -> <N as IntoViewChild<DynamicViewChildMarker<Marker>>>::Output
fn into_child( self, ) -> <N as IntoViewChild<DynamicViewChildMarker<Marker>>>::Output
Convert into the child view.
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.