Enum rsass::css::Value [] [src]

pub enum Value {
    Call(StringCallArgs),
    Div(Box<Value>, Box<Value>, boolbool),
    Literal(StringQuotes),
    List(Vec<Value>, ListSeparatorbool),
    Numeric(RationalUnitboolbool),
    Color(RationalRationalRationalRationalOption<String>),
    Null,
    True,
    False,
    BinOp(Box<Value>, Operator, Box<Value>),
    UnaryOp(Operator, Box<Value>),
    Map(OrderMap<Value, Value>),
}

A sass value.

Variants

The booleans tell if there should be whitespace before / after the slash.

A comma- or space separated list of values, with or without brackets.

A Numeric value is a rational value with a Unit (which may be Unit::None) and flags.

The first flag is true for values with an explicit + sign.

The second flag is true for calculated values and false for literal values.

A binary operation, two operands and an operator.

Methods

impl Value
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

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

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Value
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Value
[src]

impl PartialOrd for Value
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl Ord for Value
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Display for Value
[src]

[src]

Formats the value using the given formatter. Read more