pub enum LuaExpr {
CallExpr(LuaCallExpr),
TableExpr(LuaTableExpr),
LiteralExpr(LuaLiteralExpr),
BinaryExpr(LuaBinaryExpr),
UnaryExpr(LuaUnaryExpr),
ClosureExpr(LuaClosureExpr),
ParenExpr(LuaParenExpr),
NameExpr(LuaNameExpr),
IndexExpr(LuaIndexExpr),
}Variants§
CallExpr(LuaCallExpr)
TableExpr(LuaTableExpr)
LiteralExpr(LuaLiteralExpr)
BinaryExpr(LuaBinaryExpr)
UnaryExpr(LuaUnaryExpr)
ClosureExpr(LuaClosureExpr)
ParenExpr(LuaParenExpr)
NameExpr(LuaNameExpr)
IndexExpr(LuaIndexExpr)
Trait Implementations§
source§impl LuaAstNode for LuaExpr
impl LuaAstNode for LuaExpr
fn syntax(&self) -> &LuaSyntaxNode
fn can_cast(kind: LuaSyntaxKind) -> boolwhere
Self: Sized,
fn cast(syntax: LuaSyntaxNode) -> Option<Self>where
Self: Sized,
fn child<N: LuaAstNode>(&self) -> Option<N>
fn token<N: LuaAstToken>(&self) -> Option<N>
fn token_by_kind(&self, kind: LuaTokenKind) -> Option<LuaGeneralToken>
fn tokens<N: LuaAstToken>(&self) -> LuaAstTokenChildren<N> ⓘ
fn children<N: LuaAstNode>(&self) -> LuaAstChildren<N> ⓘ
fn descendants<N: LuaAstNode>(&self) -> impl Iterator<Item = N>
fn ancestors<N: LuaAstNode>(&self) -> impl Iterator<Item = N>
fn dump(&self)
impl Eq for LuaExpr
impl StructuralPartialEq for LuaExpr
Auto Trait Implementations§
impl Freeze for LuaExpr
impl !RefUnwindSafe for LuaExpr
impl !Send for LuaExpr
impl !Sync for LuaExpr
impl Unpin for LuaExpr
impl !UnwindSafe for LuaExpr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)