Enum rsass::Value [] [src]

pub enum Value {
    Call(String, CallArgs),
    Div(Box<Value>, Box<Value>, boolbool),
    Literal(StringQuotes),
    List(Vec<Value>, ListSeparator),
    Numeric(RationalUnitbool),
    Paren(Box<Value>),
    Variable(String),
    Color(RationalRationalRationalRationalOption<String>),
    Null,
    True,
    False,
    BinOp(Box<Value>, Operator, Box<Value>),
    UnaryOp(Operator, Box<Value>),
    Interpolation(Box<Value>),
}

A sass value.

Variants

A call has a name and an argument (which may be multi).

Sometimes an actual division, sometimes "a/b". In the later case, the booleans tell if there should be whitespace before / after the slash.

A Numeric value is a rational value with a Unit (which may be Unit::None) and a flag which is true for calculated values and false for literal values.

"(a/b) and a/b differs semantically. Parens means the value should be evaluated numerically if possible, without parens / is not allways division.

Both a numerical and original string representation, since case and length should be preserved (#AbC vs #aabbcc).

A binary operation, two operands and an operator.

Methods

impl Value
[src]

All values other than False and Null should be considered true.

Trait Implementations

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

Formats the value using the given formatter.

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Value
[src]

impl Display for Value
[src]

Formats the value using the given formatter. Read more

impl PartialOrd for Value
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more