pub struct Choice { /* private fields */ }Implementations§
Source§impl Choice
impl Choice
pub fn bullets(&self) -> Option<ChoiceBullets>
pub fn label(&self) -> Option<Label>
pub fn conditions(&self) -> impl Iterator<Item = ChoiceCondition>
pub fn start_content(&self) -> Option<ChoiceStartContent>
pub fn bracket_content(&self) -> Option<ChoiceBracketContent>
pub fn inner_content(&self) -> Option<ChoiceInnerContent>
pub fn divert(&self) -> Option<DivertNode>
Returns an iterator over all TAGS children (tags can appear on each content region within a choice line).
Trait Implementations§
Source§impl AstNode for Choice
impl AstNode for Choice
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.impl Eq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl !RefUnwindSafe for Choice
impl !Send for Choice
impl !Sync for Choice
impl !UnwindSafe for Choice
impl Freeze for Choice
impl Unpin for Choice
impl UnsafeUnpin for Choice
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