pub struct ScssVariableDeclaration {
pub span: Range<usize>,
pub name: String,
pub value: ScssValue,
}Expand description
A variable declaration
Fields§
§span: Range<usize>The source range of the variable declaration
name: StringThe variable name
value: ScssValueThe variable value
Implementations§
Source§impl ScssVariableDeclaration
impl ScssVariableDeclaration
Sourcepub fn traverse<V: ScssVisitor>(&self, visitor: &mut V)
pub fn traverse<V: ScssVisitor>(&self, visitor: &mut V)
Traverses the variable declaration 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 variable declaration with the given visitor.
Trait Implementations§
Source§impl Clone for ScssVariableDeclaration
impl Clone for ScssVariableDeclaration
Source§fn clone(&self) -> ScssVariableDeclaration
fn clone(&self) -> ScssVariableDeclaration
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 ScssVariableDeclaration
impl RefUnwindSafe for ScssVariableDeclaration
impl Send for ScssVariableDeclaration
impl Sync for ScssVariableDeclaration
impl Unpin for ScssVariableDeclaration
impl UnsafeUnpin for ScssVariableDeclaration
impl UnwindSafe for ScssVariableDeclaration
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