pub struct Begin { /* private fields */ }Expand description
A \begin{name} node.
Implementations§
Source§impl Begin
impl Begin
Sourcepub fn name_group(&self) -> Option<NameGroup>
pub fn name_group(&self) -> Option<NameGroup>
The {name} group following \begin.
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
The environment name (braces dropped), or None for a malformed \begin.
Sourcepub fn name_range(&self) -> Option<TextRange>
pub fn name_range(&self) -> Option<TextRange>
The byte range of the environment name inside the NAME_GROUP.
Trait Implementations§
Source§impl AstNode for Begin
impl AstNode for Begin
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
impl Eq for Begin
impl StructuralPartialEq for Begin
Auto Trait Implementations§
impl !RefUnwindSafe for Begin
impl !Send for Begin
impl !Sync for Begin
impl !UnwindSafe for Begin
impl Freeze for Begin
impl Unpin for Begin
impl UnsafeUnpin for Begin
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