Struct rsass::sass::FormalArgs
source · pub struct FormalArgs(/* private fields */);
Expand description
The declared arguments of a mixin or function declaration.
The arguments are ordered (so they have a position). Each argument also has a name and may have a default value.
Implementations§
source§impl FormalArgs
impl FormalArgs
sourcepub fn new(args: Vec<(Name, Option<Value>)>) -> FormalArgs
pub fn new(args: Vec<(Name, Option<Value>)>) -> FormalArgs
Create a new FormalArgs
.
The given arg-pairs each have a name and an optional default value.
sourcepub fn new_va(args: Vec<(Name, Option<Value>)>) -> FormalArgs
pub fn new_va(args: Vec<(Name, Option<Value>)>) -> FormalArgs
Create a new set of varargs arguments
sourcepub fn none() -> FormalArgs
pub fn none() -> FormalArgs
Create an empty set of arguments.
sourcepub fn is_varargs(&self) -> bool
pub fn is_varargs(&self) -> bool
Return true if this formalarg is varargs.
Trait Implementations§
source§impl Clone for FormalArgs
impl Clone for FormalArgs
source§fn clone(&self) -> FormalArgs
fn clone(&self) -> FormalArgs
Returns a copy 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 moresource§impl Debug for FormalArgs
impl Debug for FormalArgs
source§impl Display for FormalArgs
impl Display for FormalArgs
source§impl PartialEq for FormalArgs
impl PartialEq for FormalArgs
source§fn eq(&self, other: &FormalArgs) -> bool
fn eq(&self, other: &FormalArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FormalArgs
impl PartialOrd for FormalArgs
source§fn partial_cmp(&self, other: &FormalArgs) -> Option<Ordering>
fn partial_cmp(&self, other: &FormalArgs) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for FormalArgs
impl StructuralEq for FormalArgs
impl StructuralPartialEq for FormalArgs
Auto Trait Implementations§
impl RefUnwindSafe for FormalArgs
impl Send for FormalArgs
impl Sync for FormalArgs
impl Unpin for FormalArgs
impl UnwindSafe for FormalArgs
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