pub enum Item {
Show 18 variants
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(Value, Vec<Item>, Vec<Item>),
Each(Vec<String>, Value, Vec<Item>),
For {
name: String,
from: Box<Value>,
to: Box<Value>,
inclusive: bool,
body: Vec<Item>,
},
While(Value, Vec<Item>),
Rule(Selectors, Vec<Item>),
NamespaceRule(String, Value, Vec<Item>),
Property(SassString, Value),
Comment(String),
None,
}
Expand description
Every sass file is a sequence of sass items. Scoping items contains further sequences of items.
Variants§
Import(Value)
VariableDeclaration
AtRoot
AtRule
MixinDeclaration
MixinCall
Content
FunctionDeclaration
Return(Value)
IfStatement(Value, Vec<Item>, Vec<Item>)
Each(Vec<String>, Value, Vec<Item>)
The value may be or evaluate to a list.
For
While(Value, Vec<Item>)
Rule(Selectors, Vec<Item>)
NamespaceRule(String, Value, Vec<Item>)
Property(SassString, Value)
Comment(String)
None
Trait Implementations§
source§impl Ord for Item
impl Ord for Item
source§impl PartialOrd<Item> for Item
impl PartialOrd<Item> for Item
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more