pub struct OwnedLexicalSnippet {
pub text: String,
pub source: Highlight,
pub highlights: Vec<Highlight>,
}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.
Trait Implementations§
Source§impl Clone for OwnedLexicalSnippet
impl Clone for OwnedLexicalSnippet
Source§fn clone(&self) -> OwnedLexicalSnippet
fn clone(&self) -> OwnedLexicalSnippet
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 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