Skip to content

enum

Value

pub enum Value {
    Str(TextTemplate),
    Num(f64),
    Bool(bool),
    Ref(Path),
    Expr(Box<Expr>),
}

An attribute value.

Variants

Str

Str(TextTemplate)

A string, which may interpolate.

Num

Num(f64)

A number.

Bool

Bool(bool)

true or false.

Ref

Ref(Path)

A reference into the scope, e.g. fill: bar.color.

Expr

Expr(Box<Expr>)

Anything more than one token: count + 1, items |> len, null.

Trait implementations