This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

Type Alias yew::virtual_dom::AttrValue

source ·
pub type AttrValue = IString;
Expand description

Attribute value

Aliased Type§

enum AttrValue {
    Static(&'static str),
    Rc(Rc<str>),
}

Variants§

§

Static(&'static str)

A static string slice.

§

Rc(Rc<str>)

A reference counted string slice.

Trait Implementations§

source§

impl IntoPropValue<ChildrenRenderer<VNode>> for AttrValue

source§

fn into_prop_value(self) -> ChildrenRenderer<VNode>

Convert self to a value of a Properties struct.
source§

impl IntoPropValue<VNode> for AttrValue

source§

fn into_prop_value(self) -> VNode

Convert self to a value of a Properties struct.