pub struct RustcSpanText {
pub text: String,
pub highlight_start: usize,
pub highlight_end: usize,
}Expand description
Text snippet from a span
Fields§
§text: StringThe source text
highlight_start: usizeStart of highlight in text (1-indexed)
highlight_end: usizeEnd of highlight in text (1-indexed)
Trait Implementations§
Source§impl Clone for RustcSpanText
impl Clone for RustcSpanText
Source§fn clone(&self) -> RustcSpanText
fn clone(&self) -> RustcSpanText
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustcSpanText
impl Debug for RustcSpanText
Source§impl<'de> Deserialize<'de> for RustcSpanText
impl<'de> Deserialize<'de> for RustcSpanText
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
Source§impl PartialEq for RustcSpanText
impl PartialEq for RustcSpanText
impl Eq for RustcSpanText
impl StructuralPartialEq for RustcSpanText
Auto Trait Implementations§
impl Freeze for RustcSpanText
impl RefUnwindSafe for RustcSpanText
impl Send for RustcSpanText
impl Sync for RustcSpanText
impl Unpin for RustcSpanText
impl UnwindSafe for RustcSpanText
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