Struct rustfix::diagnostics::DiagnosticSpan [−][src]
Fields
file_name: String
byte_start: u32
byte_end: u32
line_start: usize
1-based.
line_end: usize
column_start: usize
1-based, character offset.
column_end: usize
text: Vec<DiagnosticSpanLine>
Source text from the start of line_start to the end of line_end.
suggested_replacement: Option<String>
If we are suggesting a replacement, this will contain text
that should be sliced in atop this span. You may prefer to
load the fully rendered version from the parent Diagnostic
,
however.
suggestion_applicability: Option<Applicability>
Trait Implementations
impl Clone for DiagnosticSpan
[src][+]
impl Debug for DiagnosticSpan
[src][+]
impl<'de> Deserialize<'de> for DiagnosticSpan
[src][+]
impl Eq for DiagnosticSpan
[src]
impl Hash for DiagnosticSpan
[src][+]
impl PartialEq<DiagnosticSpan> for DiagnosticSpan
[src][+]
impl StructuralEq for DiagnosticSpan
[src]
impl StructuralPartialEq for DiagnosticSpan
[src]
Auto Trait Implementations
impl RefUnwindSafe for DiagnosticSpan
impl Send for DiagnosticSpan
impl Sync for DiagnosticSpan
impl Unpin for DiagnosticSpan
impl UnwindSafe for DiagnosticSpan
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,