pub struct SpanText {
pub text: String,
pub highlight_start: u32,
pub highlight_end: u32,
}Available on crate feature
code only.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<SpanText, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanText, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SpanText
impl Serialize for SpanText
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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