Struct asciidork_parser::Diagnostic
source · pub struct Diagnostic {
pub line_num: usize,
pub line: String,
pub message: String,
pub underline_start: usize,
pub underline_width: usize,
}Fields§
§line_num: usize§line: String§message: String§underline_start: usize§underline_width: usizeImplementations§
source§impl Diagnostic
impl Diagnostic
pub fn plain_text(&self) -> String
pub fn plain_text_with<C: DiagnosticColor>(&self, colorizer: C) -> String
Trait Implementations§
source§impl Debug for Diagnostic
impl Debug for Diagnostic
source§impl From<Diagnostic> for Vec<Diagnostic>
impl From<Diagnostic> for Vec<Diagnostic>
source§fn from(diagnostic: Diagnostic) -> Self
fn from(diagnostic: Diagnostic) -> Self
Converts to this type from the input type.
source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
source§fn eq(&self, other: &Diagnostic) -> bool
fn eq(&self, other: &Diagnostic) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
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