pub struct JsonSpan {
pub file: String,
pub line_start: usize,
pub line_end: usize,
pub column_start: usize,
pub column_end: usize,
pub is_primary: bool,
pub label: Option<String>,
pub text: Option<String>,
}Expand description
A source span in JSON format.
Fields§
§file: StringThe file path.
line_start: usizeThe starting line (1-indexed).
line_end: usizeThe ending line (1-indexed).
column_start: usizeThe starting column (1-indexed).
column_end: usizeThe ending column (1-indexed).
is_primary: boolWhether this is the primary span.
label: Option<String>The label for this span, if any.
text: Option<String>The source text at this span.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsonSpan
impl<'de> Deserialize<'de> for JsonSpan
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 JsonSpan
impl RefUnwindSafe for JsonSpan
impl Send for JsonSpan
impl Sync for JsonSpan
impl Unpin for JsonSpan
impl UnsafeUnpin for JsonSpan
impl UnwindSafe for JsonSpan
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