pub struct HighlightToken {
pub range: Range,
pub token_type: TokenType,
pub semantic_info: Option<String>,
}Expand description
A highlighted token in the document
Fields§
§range: RangeRange of the token in the document
token_type: TokenTypeType of the token
semantic_info: Option<String>Optional semantic information
Trait Implementations§
Source§impl Clone for HighlightToken
impl Clone for HighlightToken
Source§fn clone(&self) -> HighlightToken
fn clone(&self) -> HighlightToken
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 HighlightToken
impl Debug for HighlightToken
Source§impl PartialEq for HighlightToken
impl PartialEq for HighlightToken
impl Eq for HighlightToken
impl StructuralPartialEq for HighlightToken
Auto Trait Implementations§
impl Freeze for HighlightToken
impl RefUnwindSafe for HighlightToken
impl Send for HighlightToken
impl Sync for HighlightToken
impl Unpin for HighlightToken
impl UnwindSafe for HighlightToken
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