pub struct AlternationBlock { /* private fields */ }Implementations§
Source§impl AlternationBlock
impl AlternationBlock
Sourcepub fn marker_token(&self) -> Option<SyntaxToken>
pub fn marker_token(&self) -> Option<SyntaxToken>
The ~/&/!/| marker token.
Sourcepub fn entries(&self) -> impl Iterator<Item = Entry>
pub fn entries(&self) -> impl Iterator<Item = Entry>
The multiline --prefixed entries, if this block used that form
(family.rs::multiline_entries). Empty for the single-line
pipe-separated form — see Self::syntax for the raw child walk
callers need for that form instead (no per-alternative wrapper node
exists for it, family.rs::inline_alternatives).
Trait Implementations§
Source§impl AstNode for AlternationBlock
impl AstNode for AlternationBlock
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 AlternationBlock
impl Clone for AlternationBlock
Source§fn clone(&self) -> AlternationBlock
fn clone(&self) -> AlternationBlock
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 AlternationBlock
impl Debug for AlternationBlock
Source§impl Display for AlternationBlock
impl Display for AlternationBlock
impl Eq for AlternationBlock
Source§impl Hash for AlternationBlock
impl Hash for AlternationBlock
Source§impl PartialEq for AlternationBlock
impl PartialEq for AlternationBlock
impl StructuralPartialEq for AlternationBlock
Auto Trait Implementations§
impl !RefUnwindSafe for AlternationBlock
impl !Send for AlternationBlock
impl !Sync for AlternationBlock
impl !UnwindSafe for AlternationBlock
impl Freeze for AlternationBlock
impl Unpin for AlternationBlock
impl UnsafeUnpin for AlternationBlock
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