pub struct SpanText {
pub text: String,
pub highlight_start: u32,
pub highlight_end: u32,
}Expand description
A line of source text with highlight markers.
Fields§
§text: StringThe source text of the line.
highlight_start: u32Column where the highlight starts (1-indexed).
highlight_end: u32Column where the highlight ends (1-indexed).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpanText
impl<'de> Deserialize<'de> for SpanText
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 SpanText
impl RefUnwindSafe for SpanText
impl Send for SpanText
impl Sync for SpanText
impl Unpin for SpanText
impl UnsafeUnpin for SpanText
impl UnwindSafe for SpanText
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