pub struct LatexError { /* private fields */ }Expand description
Typed TeX math-body error with source coordinates.
Implementations§
Source§impl LatexError
impl LatexError
Sourcepub const fn kind(&self) -> &LatexErrorKind
pub const fn kind(&self) -> &LatexErrorKind
Error category.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Source byte span that caused the error.
Trait Implementations§
Source§impl Clone for LatexError
impl Clone for LatexError
Source§fn clone(&self) -> LatexError
fn clone(&self) -> LatexError
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 LatexError
impl Debug for LatexError
Source§impl Display for LatexError
impl Display for LatexError
Source§impl Error for LatexError
impl Error for LatexError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for LatexError
impl PartialEq for LatexError
Source§fn eq(&self, other: &LatexError) -> bool
fn eq(&self, other: &LatexError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LatexError
impl StructuralPartialEq for LatexError
Auto Trait Implementations§
impl Freeze for LatexError
impl RefUnwindSafe for LatexError
impl Send for LatexError
impl Sync for LatexError
impl Unpin for LatexError
impl UnsafeUnpin for LatexError
impl UnwindSafe for LatexError
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