A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/json/struct.DiagnosticSpan.html below:

DiagnosticSpan in rustc_errors::json - Rust

Struct DiagnosticSpanSource
struct DiagnosticSpan {Show 13 fields
    file_name: String,
    byte_start: u32,
    byte_end: u32,
    line_start: usize,
    line_end: usize,
    column_start: usize,
    column_end: usize,
    is_primary: bool,
    text: Vec<DiagnosticSpanLine>,
    label: Option<String>,
    suggested_replacement: Option<String>,
    suggestion_applicability: Option<Applicability>,
    expansion: Option<Box<DiagnosticSpanMacroExpansion>>,
}

1-based.

§column_start: usize

1-based, character offset.

§column_end: usize

Is this a “primary” span – meaning the point, or one of the points, where the error occurred?

Source text from the start of line_start to the end of line_end.

Label that should be placed at this location (if any)

If we are suggesting a replacement, this will contain text that should be sliced in atop this span.

If the suggestion is approximate

Macro invocations that created the code at this span, if any.

Note: Most layout information is completely unstable and may even differ between compilations. 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: 152 bytes


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4