pub enum FunctionArgs<'a> {
TableConstructor(TableConstructor<'a>),
StringLit(StringLit<'a>),
ParenthesizedList(ParenthesizedList<'a, Box<Expr<'a>>>),
}
Expand description
Function call arguments.
Variants§
TableConstructor(TableConstructor<'a>)
A table constructor with parentheses omitted (func {tbl}
).
StringLit(StringLit<'a>)
A string literal with parentheses omitted (func "string"
).
ParenthesizedList(ParenthesizedList<'a, Box<Expr<'a>>>)
The usual call syntax (func(arg1, arg2, ...)
).
Trait Implementations§
Source§impl<'a> AstDescend<'a> for FunctionArgs<'a>
impl<'a> AstDescend<'a> for FunctionArgs<'a>
fn descend_mut<T: VisitorMut<'a>>(&mut self, visitor: &mut T)
Source§impl<'a> Clone for FunctionArgs<'a>
impl<'a> Clone for FunctionArgs<'a>
Source§fn clone(&self) -> FunctionArgs<'a>
fn clone(&self) -> FunctionArgs<'a>
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<'a> Debug for FunctionArgs<'a>
impl<'a> Debug for FunctionArgs<'a>
Source§impl Display for FunctionArgs<'_>
impl Display for FunctionArgs<'_>
Auto Trait Implementations§
impl<'a> Freeze for FunctionArgs<'a>
impl<'a> RefUnwindSafe for FunctionArgs<'a>
impl<'a> Send for FunctionArgs<'a>
impl<'a> Sync for FunctionArgs<'a>
impl<'a> Unpin for FunctionArgs<'a>
impl<'a> UnwindSafe for FunctionArgs<'a>
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