pub struct CallArgs { /* private fields */ }
Expand description
the actual arguments of a function or mixin call.
Each argument has a Value. Arguments may be named. If the optional name is None, the argument is positional.
Implementations§
source§impl CallArgs
impl CallArgs
sourcepub fn new(
v: Vec<(Option<Name>, Value)>,
trailing_comma: bool
) -> Result<Self, Invalid>
pub fn new( v: Vec<(Option<Name>, Value)>, trailing_comma: bool ) -> Result<Self, Invalid>
Create a new callargs from a vec of name-value pairs.
The names is none for positional arguments.
sourcepub fn new_single(value: Value) -> Self
pub fn new_single(value: Value) -> Self
Create a new CallArgs
from one single unnamed argument.
Trait Implementations§
source§impl PartialEq for CallArgs
impl PartialEq for CallArgs
source§impl PartialOrd for CallArgs
impl PartialOrd for CallArgs
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 CallArgs
impl StructuralPartialEq for CallArgs
Auto Trait Implementations§
impl Freeze for CallArgs
impl RefUnwindSafe for CallArgs
impl Send for CallArgs
impl Sync for CallArgs
impl Unpin for CallArgs
impl UnwindSafe for CallArgs
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