pub struct HighlightToken {
pub text: String,
pub kind: HighlightKind,
}Expand description
A token with an associated highlight kind.
Fields§
§text: String§kind: HighlightKindTrait 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 moreAuto Trait Implementations§
impl Freeze for HighlightToken
impl RefUnwindSafe for HighlightToken
impl Send for HighlightToken
impl Sync for HighlightToken
impl Unpin for HighlightToken
impl UnsafeUnpin 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