Type Alias dioxus_core::Element

source ·
pub type Element<'a> = Option<VNode<'a>>;
Expand description

An Element is a possibly-none VNode created by calling render on Scope or ScopeState.

An Errored Element will propagate the error to the nearest error boundary.

Aliased Type§

enum Element<'a> {
    None,
    Some(VNode<'a>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(VNode<'a>)

Some value of type T.

Trait Implementations§

source§

impl<'a> IntoDynNode<'a> for &Element<'a>

source§

fn into_vnode(self, _cx: &'a ScopeState) -> DynamicNode<'a>

Consume this item along with a scopestate and produce a DynamicNode Read more