pub struct DiagnosticSpan {
pub file_name: String,
pub line_start: u32,
pub line_end: u32,
pub column_start: u32,
pub column_end: u32,
pub text: Vec<SpanText>,
}Expand description
A source span within a diagnostic.
Fields§
§file_name: StringThe file name where the diagnostic applies.
line_start: u32Starting line number (1-indexed).
line_end: u32Ending line number (1-indexed).
column_start: u32Starting column number (1-indexed).
column_end: u32Ending column number (1-indexed).
text: Vec<SpanText>Source text with highlight information.
Trait Implementations§
Source§impl Clone for DiagnosticSpan
impl Clone for DiagnosticSpan
Source§fn clone(&self) -> DiagnosticSpan
fn clone(&self) -> DiagnosticSpan
Returns a duplicate of the value. Read more
1.0.0 · 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 DiagnosticSpan
impl Debug for DiagnosticSpan
Source§impl<'de> Deserialize<'de> for DiagnosticSpan
impl<'de> Deserialize<'de> for DiagnosticSpan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DiagnosticSpan
impl RefUnwindSafe for DiagnosticSpan
impl Send for DiagnosticSpan
impl Sync for DiagnosticSpan
impl Unpin for DiagnosticSpan
impl UnsafeUnpin for DiagnosticSpan
impl UnwindSafe for DiagnosticSpan
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