pub struct LuaIfStat { /* private fields */ }Implementations§
Source§impl LuaIfStat
impl LuaIfStat
pub fn get_condition_expr(&self) -> Option<LuaExpr>
pub fn get_block(&self) -> Option<LuaBlock>
pub fn get_else_if_clause_list(&self) -> LuaAstChildren<LuaElseIfClauseStat> ⓘ
pub fn get_else_clause(&self) -> Option<LuaElseClauseStat>
pub fn get_all_clause(&self) -> LuaAstChildren<LuaIfClauseStat> ⓘ
Trait Implementations§
Source§impl LuaAstNode for LuaIfStat
impl LuaAstNode for LuaIfStat
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)
Source§impl LuaCommentOwner for LuaIfStat
impl LuaCommentOwner for LuaIfStat
fn get_comments(&self) -> Vec<LuaComment>
impl Eq for LuaIfStat
impl StructuralPartialEq for LuaIfStat
Auto Trait Implementations§
impl Freeze for LuaIfStat
impl !RefUnwindSafe for LuaIfStat
impl !Send for LuaIfStat
impl !Sync for LuaIfStat
impl Unpin for LuaIfStat
impl !UnwindSafe for LuaIfStat
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)