pub struct OwnedLexicalSnippet {
pub text: String,
pub source: Highlight,
pub highlights: Vec<Highlight>,
pub source_len: usize,
}Expand description
Owned snippet text with absolute source ranges.
Fields§
§text: StringUTF-8-valid text copied from source.
source: HighlightAbsolute byte range within the persisted source text.
highlights: Vec<Highlight>Absolute matched byte ranges within the persisted source text.
source_len: usizeByte length of the whole persisted source text, so a caller can tell
whether source stops before its end.
Trait Implementations§
Source§impl Clone for OwnedLexicalSnippet
impl Clone for OwnedLexicalSnippet
Source§impl Debug for OwnedLexicalSnippet
impl Debug for OwnedLexicalSnippet
impl Eq for OwnedLexicalSnippet
Source§impl PartialEq for OwnedLexicalSnippet
impl PartialEq for OwnedLexicalSnippet
impl StructuralPartialEq for OwnedLexicalSnippet
Auto Trait Implementations§
impl Freeze for OwnedLexicalSnippet
impl RefUnwindSafe for OwnedLexicalSnippet
impl Send for OwnedLexicalSnippet
impl Sync for OwnedLexicalSnippet
impl Unpin for OwnedLexicalSnippet
impl UnsafeUnpin for OwnedLexicalSnippet
impl UnwindSafe for OwnedLexicalSnippet
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