[][src]Enum rsass::Item

pub enum Item {
    Import(Value),
    VariableDeclaration {
        name: String,
        val: Value,
        default: bool,
        global: bool,
    },
    AtRoot {
        selectors: Selectors,
        body: Vec<Item>,
    },
    AtRule {
        name: String,
        args: Value,
        body: Option<Vec<Item>>,
    },
    MixinDeclaration {
        name: String,
        args: FormalArgs,
        body: Vec<Item>,
    },
    MixinCall {
        name: String,
        args: CallArgs,
        body: Vec<Item>,
    },
    Content,
    FunctionDeclaration {
        name: String,
        func: SassFunction,
    },
    Return(Value),
    IfStatement(ValueVec<Item>, Vec<Item>),
    Each(Vec<String>, ValueVec<Item>),
    For {
        name: String,
        from: Box<Value>,
        to: Box<Value>,
        inclusive: bool,
        body: Vec<Item>,
    },
    While(ValueVec<Item>),
    Rule(SelectorsVec<Item>),
    NamespaceRule(StringValueVec<Item>),
    Property(SassStringValue),
    Comment(String),
    None,
}

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

Variants

Import(Value)VariableDeclaration

Fields of VariableDeclaration

name: Stringval: Valuedefault: boolglobal: bool
AtRoot

Fields of AtRoot

selectors: Selectorsbody: Vec<Item>
AtRule

Fields of AtRule

name: Stringargs: Valuebody: Option<Vec<Item>>
MixinDeclaration

Fields of MixinDeclaration

name: Stringargs: FormalArgsbody: Vec<Item>
MixinCall

Fields of MixinCall

name: Stringargs: CallArgsbody: Vec<Item>
ContentFunctionDeclaration

Fields of FunctionDeclaration

name: Stringfunc: SassFunction
Return(Value)IfStatement(ValueVec<Item>, Vec<Item>)Each(Vec<String>, ValueVec<Item>)

The value may be or evaluate to a list.

For

Fields of For

name: Stringfrom: Box<Value>to: Box<Value>inclusive: boolbody: Vec<Item>
While(ValueVec<Item>)Rule(SelectorsVec<Item>)NamespaceRule(StringValueVec<Item>)Property(SassStringValue)Comment(String)None

Trait Implementations

impl PartialOrd<Item> for Item[src]

impl Eq for Item[src]

impl Ord for Item[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq<Item> for Item[src]

impl Clone for Item[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Item[src]

Auto Trait Implementations

impl Send for Item

impl Sync for Item

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]