pub enum FunctionCallInvoked {
Function(Pointer<PrefixExp>),
TableMethod {
table: Pointer<PrefixExp>,
colon: Pointer<Token>,
method: Pointer<Token>,
},
}Expand description
Different ways a function can be called.
Variants§
Function(Pointer<PrefixExp>)
A standalone function call or one in a table.
local _ = foo()
local _ = t.bar()TableMethod
A method in a function, a method is a function that’s called with : instead
of ..
local _ = t:foo()Trait Implementations§
Source§impl Clone for FunctionCallInvoked
impl Clone for FunctionCallInvoked
Source§fn clone(&self) -> FunctionCallInvoked
fn clone(&self) -> FunctionCallInvoked
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 FunctionCallInvoked
impl Debug for FunctionCallInvoked
Source§impl GetRange for FunctionCallInvoked
impl GetRange for FunctionCallInvoked
Source§impl Hash for FunctionCallInvoked
impl Hash for FunctionCallInvoked
Source§impl Ord for FunctionCallInvoked
impl Ord for FunctionCallInvoked
Source§fn cmp(&self, other: &FunctionCallInvoked) -> Ordering
fn cmp(&self, other: &FunctionCallInvoked) -> 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 for FunctionCallInvoked
impl Parse for FunctionCallInvoked
Source§impl PartialEq for FunctionCallInvoked
impl PartialEq for FunctionCallInvoked
Source§impl PartialOrd for FunctionCallInvoked
impl PartialOrd for FunctionCallInvoked
Source§impl Print for FunctionCallInvoked
impl Print for FunctionCallInvoked
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 for FunctionCallInvoked
impl TryParse for FunctionCallInvoked
impl Eq for FunctionCallInvoked
impl StructuralPartialEq for FunctionCallInvoked
Auto Trait Implementations§
impl Freeze for FunctionCallInvoked
impl RefUnwindSafe for FunctionCallInvoked
impl !Send for FunctionCallInvoked
impl !Sync for FunctionCallInvoked
impl Unpin for FunctionCallInvoked
impl UnwindSafe for FunctionCallInvoked
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