Struct rustc_errors::json::DiagnosticSpanLine [−][src]
Fields
text: Stringhighlight_start: usize1-based, character offset in self.text.
highlight_end: usizeImplementations
fn line_from_source_file(
sf: &SourceFile,
index: usize,
h_start: usize,
h_end: usize
) -> DiagnosticSpanLineCreates a list of DiagnosticSpanLines from span - each line with any part
of span gets a DiagnosticSpanLine, with the highlight indicating the
span within the line.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DiagnosticSpanLineimpl Send for DiagnosticSpanLineimpl Sync for DiagnosticSpanLineimpl Unpin for DiagnosticSpanLineimpl UnwindSafe for DiagnosticSpanLineBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes