Type Alias freya::prelude::Element

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§

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