Enum rsass::SassItem [] [src]

pub enum SassItem {
    None,
    Comment(String),
    Import(Value),
    Property(String, Value, bool),
    Rule(Vec<Selector>, Vec<SassItem>),
    NamespaceRule(String, Value, Vec<SassItem>),
    Return(Value),
    VariableDeclaration {
        name: String,
        val: Value,
        default: bool,
        global: bool,
    },
    AtRule(StringVec<SassItem>),
    MixinDeclaration {
        name: String,
        args: FormalArgs,
        body: Vec<SassItem>,
    },
    FunctionDeclaration {
        name: String,
        func: SassFunction,
    },
    MixinCall {
        name: String,
        args: CallArgs,
        body: Vec<SassItem>,
    },
    Content,
    IfStatement(Value, Vec<SassItem>, Vec<SassItem>),
    Each(String, Value, Vec<SassItem>),
    For {
        name: String,
        from: Box<Value>,
        to: Box<Value>,
        inclusive: bool,
        body: Vec<SassItem>,
    },
    While(Value, Vec<SassItem>),
}

Every sass file is a sequence of sass items. Scoping items contains further sequences of items.

Variants

Fields of VariableDeclaration

Fields of MixinDeclaration

Fields of FunctionDeclaration

Fields of MixinCall

The value may be or evaluate to a list.

Fields of For

Trait Implementations

impl Clone for SassItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SassItem
[src]

Formats the value using the given formatter.

impl PartialEq for SassItem
[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 SassItem
[src]