pub struct MathDiagnostic {
pub code: &'static str,
pub message: &'static str,
pub byte_start: usize,
pub byte_end: usize,
}Expand description
A non-fatal problem found while parsing math content. Byte offsets are relative to the math content string (the caller offsets them into host document coordinates when surfacing through the linter/LSP).
Fields§
§code: &'static str§message: &'static str§byte_start: usize§byte_end: usizeTrait Implementations§
Source§impl Clone for MathDiagnostic
impl Clone for MathDiagnostic
Source§fn clone(&self) -> MathDiagnostic
fn clone(&self) -> MathDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MathDiagnostic
impl Debug for MathDiagnostic
impl Eq for MathDiagnostic
Source§impl PartialEq for MathDiagnostic
impl PartialEq for MathDiagnostic
Source§fn eq(&self, other: &MathDiagnostic) -> bool
fn eq(&self, other: &MathDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MathDiagnostic
Auto Trait Implementations§
impl Freeze for MathDiagnostic
impl RefUnwindSafe for MathDiagnostic
impl Send for MathDiagnostic
impl Sync for MathDiagnostic
impl Unpin for MathDiagnostic
impl UnsafeUnpin for MathDiagnostic
impl UnwindSafe for MathDiagnostic
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