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