pub struct ChoicePoint { /* private fields */ }Implementations§
Source§impl ChoicePoint
impl ChoicePoint
pub fn choices(&self) -> impl Iterator<Item = Choice>
pub fn else_branch(&self) -> Option<ElseBranch>
Trait Implementations§
Source§impl AstNode for ChoicePoint
impl AstNode for ChoicePoint
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 ChoicePoint
impl Clone for ChoicePoint
Source§fn clone(&self) -> ChoicePoint
fn clone(&self) -> ChoicePoint
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 ChoicePoint
impl Debug for ChoicePoint
Source§impl Display for ChoicePoint
impl Display for ChoicePoint
impl Eq for ChoicePoint
Source§impl Hash for ChoicePoint
impl Hash for ChoicePoint
Source§impl PartialEq for ChoicePoint
impl PartialEq for ChoicePoint
impl StructuralPartialEq for ChoicePoint
Auto Trait Implementations§
impl !RefUnwindSafe for ChoicePoint
impl !Send for ChoicePoint
impl !Sync for ChoicePoint
impl !UnwindSafe for ChoicePoint
impl Freeze for ChoicePoint
impl Unpin for ChoicePoint
impl UnsafeUnpin for ChoicePoint
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