pub struct ElseClause { /* private fields */ }Implementations§
Source§impl ElseClause
impl ElseClause
pub fn expr(&self) -> Option<Expr>
pub fn else_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for ElseClause
impl AstNode for ElseClause
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for ElseClause
impl Clone for ElseClause
Source§fn clone(&self) -> ElseClause
fn clone(&self) -> ElseClause
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 ElseClause
impl Debug for ElseClause
Source§impl Hash for ElseClause
impl Hash for ElseClause
Source§impl PartialEq for ElseClause
impl PartialEq for ElseClause
impl Eq for ElseClause
impl StructuralPartialEq for ElseClause
Auto Trait Implementations§
impl Freeze for ElseClause
impl !RefUnwindSafe for ElseClause
impl !Send for ElseClause
impl !Sync for ElseClause
impl Unpin for ElseClause
impl !UnwindSafe for ElseClause
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