pub struct DiagnosticSpan {
pub file: String,
pub line: u64,
pub column: u64,
pub primary: bool,
}Expand description
A source location in a diagnostic.
Fields§
§file: StringThe file, as printed.
line: u641-based line.
column: u641-based column.
primary: boolPrimary (-->) or secondary (:::).
Trait Implementations§
Source§impl Clone for DiagnosticSpan
impl Clone for DiagnosticSpan
Source§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
impl Eq for DiagnosticSpan
Source§impl PartialEq for DiagnosticSpan
impl PartialEq for DiagnosticSpan
Source§impl Serialize for DiagnosticSpan
impl Serialize for DiagnosticSpan
impl StructuralPartialEq for DiagnosticSpan
Auto Trait Implementations§
impl Forget for DiagnosticSpan
impl Freeze for DiagnosticSpan
impl Move for DiagnosticSpan
impl RefUnwindSafe for DiagnosticSpan
impl Send for DiagnosticSpanwhere
RawVecInner: Send,
impl Sync for DiagnosticSpanwhere
RawVecInner: Sync,
impl Unpin for DiagnosticSpan
impl UnsafeUnpin for DiagnosticSpan
impl UnwindSafe for DiagnosticSpanwhere
RawVecInner: UnwindSafe,
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