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