[][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(SassStringValueVec<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>
Content
FunctionDeclaration

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(SassStringValueVec<Item>)
Property(SassStringValue)
Comment(String)
None

Trait Implementations

impl Clone for Item[src]

impl PartialOrd<Item> for Item[src]

impl Eq for Item[src]

impl Ord for Item[src]

impl PartialEq<Item> for Item[src]

impl Debug for Item[src]

Auto Trait Implementations

impl Send for Item

impl Sync for Item

impl Unpin for Item

impl !UnwindSafe for Item

impl !RefUnwindSafe for Item

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,