pub struct InputSpan {
pub source: String,
pub block: usize,
pub range: Option<(usize, usize)>,
}Fields§
§source: StringOne of the constants in input_source.
block: usizeWhich content block of the message.
range: Option<(usize, usize)>Byte range within that block’s text. Absent for a non-text block, which has no interior to point into.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InputSpan
impl<'de> Deserialize<'de> for InputSpan
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
impl Eq for InputSpan
impl StructuralPartialEq for InputSpan
Auto Trait Implementations§
impl Forget for InputSpan
impl Freeze for InputSpan
impl Move for InputSpan
impl RefUnwindSafe for InputSpan
impl Send for InputSpan
impl Sync for InputSpan
impl Unpin for InputSpan
impl UnsafeUnpin for InputSpan
impl UnwindSafe for InputSpan
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