Element

Type Alias Element 

Source
pub type Element = Result<VNode, RenderError>;
Expand description

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

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

Aliased Type§

pub enum Element {
    Ok(VNode),
    Err(RenderError),
}

Variants§

§1.0.0

Ok(VNode)

Contains the success value

§1.0.0

Err(RenderError)

Contains the error value

Trait Implementations§

Source§

impl IntoDynNode for &Element

Source§

fn into_dyn_node(self) -> DynamicNode

Consume this item and produce a DynamicNode
Source§

impl IntoDynNode for Element

Source§

fn into_dyn_node(self) -> DynamicNode

Consume this item and produce a DynamicNode