pub enum ScssNode {
Show 13 variants
RuleSet(ScssRuleSet),
MixinDeclaration(ScssMixinDeclaration),
FunctionDeclaration(ScssFunctionDeclaration),
IncludeStatement(ScssIncludeStatement),
ImportStatement(ScssImportStatement),
VariableDeclaration(ScssVariableDeclaration),
IfStatement(ScssIfStatement),
ForStatement(ScssForStatement),
EachStatement(ScssEachStatement),
WhileStatement(ScssWhileStatement),
ReturnStatement(ScssReturnStatement),
Comment(ScssComment),
Error(ScssError),
}Expand description
SCSS node types
Variants§
RuleSet(ScssRuleSet)
A rule set (selector + block)
MixinDeclaration(ScssMixinDeclaration)
A mixin declaration
FunctionDeclaration(ScssFunctionDeclaration)
A function declaration
IncludeStatement(ScssIncludeStatement)
An include statement
ImportStatement(ScssImportStatement)
An import statement
VariableDeclaration(ScssVariableDeclaration)
A variable declaration
IfStatement(ScssIfStatement)
An if statement
ForStatement(ScssForStatement)
A for statement
EachStatement(ScssEachStatement)
An each statement
WhileStatement(ScssWhileStatement)
A while statement
ReturnStatement(ScssReturnStatement)
A return statement
Comment(ScssComment)
A comment
Error(ScssError)
An error node
Implementations§
Source§impl ScssNode
impl ScssNode
Sourcepub fn traverse<V: ScssVisitor>(&self, visitor: &mut V)
pub fn traverse<V: ScssVisitor>(&self, visitor: &mut V)
Traverses the node with the given visitor.
Sourcepub fn traverse_mut<V: ScssVisitorMut>(&mut self, visitor: &mut V)
pub fn traverse_mut<V: ScssVisitorMut>(&mut self, visitor: &mut V)
Mutably traverses the node with the given visitor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScssNode
impl RefUnwindSafe for ScssNode
impl Send for ScssNode
impl Sync for ScssNode
impl Unpin for ScssNode
impl UnsafeUnpin for ScssNode
impl UnwindSafe for ScssNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more