pub struct MathEnvironment(/* private fields */);Expand description
A \begin{env} ... \end{env} environment.
Implementations§
Source§impl MathEnvironment
impl MathEnvironment
Sourcepub fn begin_token(&self) -> Option<SyntaxToken>
pub fn begin_token(&self) -> Option<SyntaxToken>
The \begin command token.
Sourcepub fn end_token(&self) -> Option<SyntaxToken>
pub fn end_token(&self) -> Option<SyntaxToken>
The \end command token, absent when the environment is unclosed.
Sourcepub fn begin_name(&self) -> Option<String>
pub fn begin_name(&self) -> Option<String>
The {name} group following \begin, braces stripped.
Trait Implementations§
Source§impl AstNode for MathEnvironment
impl AstNode for MathEnvironment
type Language = PanacheLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl !RefUnwindSafe for MathEnvironment
impl !Send for MathEnvironment
impl !Sync for MathEnvironment
impl !UnwindSafe for MathEnvironment
impl Freeze for MathEnvironment
impl Unpin for MathEnvironment
impl UnsafeUnpin for MathEnvironment
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