pub struct OwnedToken {
pub text: String,
pub highlight: Option<SmolStr>,
pub rainbow: Option<usize>,
}Expand description
Owned token text, capture name, and optional bracket depth.
Fields§
§text: StringSource text, without newline separators.
highlight: Option<SmolStr>Query capture name, or None for unstyled text.
rainbow: Option<usize>Zero-based nesting depth, independent of the rendering palette.
Trait Implementations§
Source§impl Clone for OwnedToken
impl Clone for OwnedToken
Source§impl Debug for OwnedToken
impl Debug for OwnedToken
impl Eq for OwnedToken
Source§impl PartialEq for OwnedToken
impl PartialEq for OwnedToken
impl StructuralPartialEq for OwnedToken
Auto Trait Implementations§
impl Forget for OwnedToken
impl Freeze for OwnedToken
impl Move for OwnedToken
impl RefUnwindSafe for OwnedToken
impl Send for OwnedToken
impl Sync for OwnedToken
impl Unpin for OwnedToken
impl UnsafeUnpin for OwnedToken
impl UnwindSafe for OwnedToken
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