pub enum PrettyDetailRole {
Text,
Glyph,
}Expand description
The semantic role of a PrettyDetail.
Renderers can use this role to select their own highlight group without depending on the built-in ANSI palette.
Variants§
Text
Source text belonging to a lexical token.
Glyph
A conventional glyph representing a virtual syntax element.
Trait Implementations§
Source§impl Clone for PrettyDetailRole
impl Clone for PrettyDetailRole
Source§fn clone(&self) -> PrettyDetailRole
fn clone(&self) -> PrettyDetailRole
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 moreimpl Copy for PrettyDetailRole
Source§impl Debug for PrettyDetailRole
impl Debug for PrettyDetailRole
impl Eq for PrettyDetailRole
Source§impl PartialEq for PrettyDetailRole
impl PartialEq for PrettyDetailRole
impl StructuralPartialEq for PrettyDetailRole
Auto Trait Implementations§
impl Freeze for PrettyDetailRole
impl RefUnwindSafe for PrettyDetailRole
impl Send for PrettyDetailRole
impl Sync for PrettyDetailRole
impl Unpin for PrettyDetailRole
impl UnsafeUnpin for PrettyDetailRole
impl UnwindSafe for PrettyDetailRole
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