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 GetRange for PrefixExp
impl GetRange for PrefixExp
Source§fn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.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
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