pub struct ElseBranch { /* private fields */ }Implementations§
Source§impl ElseBranch
impl ElseBranch
pub fn branch(&self) -> Option<MultilineBranchCond>
Trait Implementations§
Source§impl AstNode for ElseBranch
impl AstNode for ElseBranch
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for ElseBranch
impl Clone for ElseBranch
Source§fn clone(&self) -> ElseBranch
fn clone(&self) -> ElseBranch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ElseBranch
impl Debug for ElseBranch
Source§impl Display for ElseBranch
impl Display for ElseBranch
impl Eq for ElseBranch
Source§impl Hash for ElseBranch
impl Hash for ElseBranch
Source§impl PartialEq for ElseBranch
impl PartialEq for ElseBranch
Source§fn eq(&self, other: &ElseBranch) -> bool
fn eq(&self, other: &ElseBranch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ElseBranch
Auto Trait Implementations§
impl !RefUnwindSafe for ElseBranch
impl !Send for ElseBranch
impl !Sync for ElseBranch
impl !UnwindSafe for ElseBranch
impl Freeze for ElseBranch
impl Unpin for ElseBranch
impl UnsafeUnpin for ElseBranch
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