pub struct MathContent(/* private fields */);Expand description
The MATH_CONTENT subtree root: the parsed TeX content between (but
excluding) the math delimiters. Spliced into the host document tree, so its
tokens carry host-aligned ranges.
Implementations§
Source§impl MathContent
impl MathContent
Sourcepub fn diagnostics(&self) -> Vec<MathDiagnostic>
pub fn diagnostics(&self) -> Vec<MathDiagnostic>
Structural problems in this subtree (see math_diagnostics).
Trait Implementations§
Source§impl AstNode for MathContent
impl AstNode for MathContent
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 MathContent
impl !Send for MathContent
impl !Sync for MathContent
impl !UnwindSafe for MathContent
impl Freeze for MathContent
impl Unpin for MathContent
impl UnsafeUnpin for MathContent
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