pub struct ChoiceBody { /* private fields */ }Implementations§
Source§impl ChoiceBody
impl ChoiceBody
pub fn items(&self) -> impl Iterator<Item = SyntaxNode>
Trait Implementations§
Source§impl AstNode for ChoiceBody
impl AstNode for ChoiceBody
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.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 ChoiceBody
impl Clone for ChoiceBody
Source§fn clone(&self) -> ChoiceBody
fn clone(&self) -> ChoiceBody
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 ChoiceBody
impl Debug for ChoiceBody
Source§impl Display for ChoiceBody
impl Display for ChoiceBody
impl Eq for ChoiceBody
Source§impl Hash for ChoiceBody
impl Hash for ChoiceBody
Source§impl PartialEq for ChoiceBody
impl PartialEq for ChoiceBody
impl StructuralPartialEq for ChoiceBody
Auto Trait Implementations§
impl !RefUnwindSafe for ChoiceBody
impl !Send for ChoiceBody
impl !Sync for ChoiceBody
impl !UnwindSafe for ChoiceBody
impl Freeze for ChoiceBody
impl Unpin for ChoiceBody
impl UnsafeUnpin for ChoiceBody
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