pub enum PrefixExp {
Var(Var),
FunctionCall(FunctionCall),
ExpressionWrap(ExpressionWrap),
}Expand description
Part of expressions that are usually at the start of actual expressions.
local _ = foo
local _ = foo()
local _ = (foo)Variants§
Var(Var)
A normal variable reference.
local _ = fooFunctionCall(FunctionCall)
A function call.
local _ = foo()ExpressionWrap(ExpressionWrap)
An expression wrapped in parenthesis
local _ = (foo)Trait Implementations§
Source§impl Ord for PrefixExp
impl Ord for PrefixExp
Source§impl Parse<PrefixExp> for FunctionCall
impl Parse<PrefixExp> for FunctionCall
Source§impl PartialOrd for PrefixExp
impl PartialOrd for PrefixExp
Source§impl Print for PrefixExp
impl Print for PrefixExp
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.
impl Eq for PrefixExp
impl StructuralPartialEq for PrefixExp
Auto Trait Implementations§
impl Freeze for PrefixExp
impl RefUnwindSafe for PrefixExp
impl !Send for PrefixExp
impl !Sync for PrefixExp
impl Unpin for PrefixExp
impl UnwindSafe for PrefixExp
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