pub enum FunctionArguments {
String(Token),
Table(Table),
List(BracketedList<Pointer<FunctionArgument>>),
}Expand description
All possible arguments that can be passed to a function.
Variants§
String(Token)
A standalone string.
local _ = foo"Hello, World!"Table(Table)
A standalone table.
local _ = foo { bar = "Hello, World!" }List(BracketedList<Pointer<FunctionArgument>>)
A list of arguments.
local _ = foo(1, 2, 3)Trait Implementations§
Source§impl Clone for FunctionArguments
impl Clone for FunctionArguments
Source§fn clone(&self) -> FunctionArguments
fn clone(&self) -> FunctionArguments
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 moreSource§impl Debug for FunctionArguments
impl Debug for FunctionArguments
Source§impl GetRange for FunctionArguments
impl GetRange for FunctionArguments
Source§impl Hash for FunctionArguments
impl Hash for FunctionArguments
Source§impl Ord for FunctionArguments
impl Ord for FunctionArguments
Source§fn cmp(&self, other: &FunctionArguments) -> Ordering
fn cmp(&self, other: &FunctionArguments) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse<FunctionArguments> for Table
impl Parse<FunctionArguments> for Table
Source§impl Parse for FunctionArguments
impl Parse for FunctionArguments
Source§impl PartialEq for FunctionArguments
impl PartialEq for FunctionArguments
Source§impl PartialOrd for FunctionArguments
impl PartialOrd for FunctionArguments
Source§impl Print for FunctionArguments
impl Print for FunctionArguments
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
Source§impl TryParse<FunctionArguments> for Table
impl TryParse<FunctionArguments> for Table
Source§impl TryParse for FunctionArguments
impl TryParse for FunctionArguments
impl Eq for FunctionArguments
impl StructuralPartialEq for FunctionArguments
Auto Trait Implementations§
impl Freeze for FunctionArguments
impl RefUnwindSafe for FunctionArguments
impl !Send for FunctionArguments
impl !Sync for FunctionArguments
impl Unpin for FunctionArguments
impl UnwindSafe for FunctionArguments
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