pub struct Group(/* private fields */);Expand description
group Name(…) extends Base <<types>> { … }
Implementations§
Source§impl Group
impl Group
pub fn name(&self) -> Option<String>
pub fn name_token(&self) -> Option<SyntaxToken>
pub fn parameters(&self) -> impl Iterator<Item = Parameter> + use<>
pub fn extends(&self) -> Option<String>
Sourcepub fn extends_token(&self) -> Option<SyntaxToken>
pub fn extends_token(&self) -> Option<SyntaxToken>
The token of the extended group’s name, for its position.
pub fn type_mode(&self) -> Option<GroupTypeMode>
pub fn body(&self) -> Option<RuleBlock>
pub fn rules(&self) -> impl Iterator<Item = Rule> + use<>
Trait Implementations§
Source§impl AstNode for Group
impl AstNode for Group
fn can_cast(kind: SyntaxKind) -> bool
fn cast(node: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl !RefUnwindSafe for Group
impl !Send for Group
impl !Sync for Group
impl !UnwindSafe for Group
impl Forget for Group
impl Freeze for Group
impl Unpin for Group
impl UnsafeUnpin for Group
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