Enum rsass::SassItem
[−]
[src]
pub enum SassItem { Import(Value), VariableDeclaration { name: String, val: Value, default: bool, global: bool, }, AtRule(String, Vec<SassItem>), MixinDeclaration { name: String, args: FormalArgs, body: Vec<SassItem>, }, MixinCall { name: String, args: CallArgs, body: Vec<SassItem>, }, Content, FunctionDeclaration { name: String, func: SassFunction, }, Return(Value), 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>), Rule(Selectors, Vec<SassItem>), NamespaceRule(String, Value, Vec<SassItem>), Property(String, Value, bool), 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: String | |
val: Value | |
default: bool | |
global: bool |
AtRule(String, Vec<SassItem>)
MixinDeclaration
Fields of MixinDeclaration
name: String | |
args: FormalArgs | |
body: Vec<SassItem> |
MixinCall
Fields of MixinCall
name: String | |
args: CallArgs | |
body: Vec<SassItem> |
Content
FunctionDeclaration
Fields of FunctionDeclaration
name: String | |
func: SassFunction |
Return(Value)
IfStatement(Value, Vec<SassItem>, Vec<SassItem>)
Each(String, Value, Vec<SassItem>)
The value may be or evaluate to a list.
For
Fields of For
name: String | |
from: Box<Value> | |
to: Box<Value> | |
inclusive: bool | |
body: Vec<SassItem> |
While(Value, Vec<SassItem>)
Rule(Selectors, Vec<SassItem>)
NamespaceRule(String, Value, Vec<SassItem>)
Property(String, Value, bool)
Comment(String)
None
Trait Implementations
impl Clone for SassItem
[src]
fn clone(&self) -> SassItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SassItem
[src]
impl PartialEq for SassItem
[src]
fn eq(&self, __arg_0: &SassItem) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SassItem) -> bool
This method tests for !=
.