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

Type Alias 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.