pub struct ScssRuleSet {
pub span: Range<usize>,
pub selector: ScssSelector,
pub block: ScssBlock,
}Expand description
A rule set consisting of a selector and a block
Fields§
§span: Range<usize>The source range of the rule set
selector: ScssSelectorThe selector
block: ScssBlockThe block containing declarations and nested rules
Implementations§
Source§impl ScssRuleSet
impl ScssRuleSet
Sourcepub fn traverse<V: ScssVisitor>(&self, visitor: &mut V)
pub fn traverse<V: ScssVisitor>(&self, visitor: &mut V)
Traverses the rule set 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 rule set with the given visitor.
Trait Implementations§
Source§impl Clone for ScssRuleSet
impl Clone for ScssRuleSet
Source§fn clone(&self) -> ScssRuleSet
fn clone(&self) -> ScssRuleSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScssRuleSet
impl RefUnwindSafe for ScssRuleSet
impl Send for ScssRuleSet
impl Sync for ScssRuleSet
impl Unpin for ScssRuleSet
impl UnsafeUnpin for ScssRuleSet
impl UnwindSafe for ScssRuleSet
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