pub struct ScssRoot {
pub span: Range<usize>,
pub children: Vec<ScssNode>,
}Expand description
SCSS root node
Fields§
§span: Range<usize>The source range of the root node
children: Vec<ScssNode>The children nodes
Implementations§
Source§impl ScssRoot
impl ScssRoot
Sourcepub fn traverse<V: ScssVisitor>(&self, visitor: &mut V)
pub fn traverse<V: ScssVisitor>(&self, visitor: &mut V)
Traverses the AST 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 AST with the given visitor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScssRoot
impl RefUnwindSafe for ScssRoot
impl Send for ScssRoot
impl Sync for ScssRoot
impl Unpin for ScssRoot
impl UnsafeUnpin for ScssRoot
impl UnwindSafe for ScssRoot
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