pub struct SessionSearchHighlight {
pub start: usize,
pub end: usize,
}Expand description
Highlight range using UTF-8 byte offsets into the returned snippet.
Fields§
§start: usizeInclusive byte offset.
end: usizeExclusive byte offset.
Trait Implementations§
Source§impl Clone for SessionSearchHighlight
impl Clone for SessionSearchHighlight
Source§fn clone(&self) -> SessionSearchHighlight
fn clone(&self) -> SessionSearchHighlight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionSearchHighlight
impl Debug for SessionSearchHighlight
Source§impl<'de> Deserialize<'de> for SessionSearchHighlight
impl<'de> Deserialize<'de> for SessionSearchHighlight
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 SessionSearchHighlight
Source§impl PartialEq for SessionSearchHighlight
impl PartialEq for SessionSearchHighlight
Source§impl Serialize for SessionSearchHighlight
impl Serialize for SessionSearchHighlight
impl StructuralPartialEq for SessionSearchHighlight
Auto Trait Implementations§
impl Freeze for SessionSearchHighlight
impl RefUnwindSafe for SessionSearchHighlight
impl Send for SessionSearchHighlight
impl Sync for SessionSearchHighlight
impl Unpin for SessionSearchHighlight
impl UnsafeUnpin for SessionSearchHighlight
impl UnwindSafe for SessionSearchHighlight
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