pub struct Glyphs { /* private fields */ }Expand description
A resolved set of semantic status glyphs.
When Unicode is disabled every accessor returns its ASCII fallback, so the
same rendering code stays byte-clean on terminals that cannot display the
Unicode symbols. Construct it from a resolved boolean via Glyphs::new, or
from the process locale via Glyphs::from_env.
Implementations§
Source§impl Glyphs
impl Glyphs
Sourcepub const fn new(unicode: bool) -> Self
pub const fn new(unicode: bool) -> Self
A glyph set with Unicode explicitly enabled or disabled.
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Resolve a glyph set from the process locale via unicode_env_enabled.
Sourcepub const fn arrow_down(self) -> &'static str
pub const fn arrow_down(self) -> &'static str
Downward navigation arrow — ↓ (ASCII v).
Trait Implementations§
impl Copy for Glyphs
impl Eq for Glyphs
impl StructuralPartialEq for Glyphs
Auto Trait Implementations§
impl Freeze for Glyphs
impl RefUnwindSafe for Glyphs
impl Send for Glyphs
impl Sync for Glyphs
impl Unpin for Glyphs
impl UnsafeUnpin for Glyphs
impl UnwindSafe for Glyphs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.