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