[][src]Enum sauron::prelude::html::attributes::AttributeValue

pub enum AttributeValue {
    FunctionCall(Value),
    Simple(Value),
    Style(Vec<Style>),
    Empty,
}

Values of an attribute can be in these variants

Variants

FunctionCall(Value)

an argument value, to be called as parameter, the function is called to the element

Simple(Value)

a simple value, wrapper of primitive types

Style(Vec<Style>)

style values

Empty

no value

Implementations

impl AttributeValue[src]

pub fn from_styles(styles: Vec<Style>) -> AttributeValue[src]

create an attribute from Vec