pub enum PowerlineWidth {
One,
Two,
}Expand description
Cell-count for the Nerd Font powerline chevron (U+E0B0). Most modern fonts at standard sizes render the chevron as a single cell; some larger sizes / older Nerd Font builds render it as two. The type makes any other value unrepresentable so layout-width math can’t drift into invalid territory.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PowerlineWidth
impl Clone for PowerlineWidth
Source§fn clone(&self) -> PowerlineWidth
fn clone(&self) -> PowerlineWidth
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 moreSource§impl Debug for PowerlineWidth
impl Debug for PowerlineWidth
Source§impl Default for PowerlineWidth
impl Default for PowerlineWidth
Source§fn default() -> PowerlineWidth
fn default() -> PowerlineWidth
Returns the “default value” for a type. Read more
Source§impl PartialEq for PowerlineWidth
impl PartialEq for PowerlineWidth
Source§fn eq(&self, other: &PowerlineWidth) -> bool
fn eq(&self, other: &PowerlineWidth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PowerlineWidth
impl Eq for PowerlineWidth
impl StructuralPartialEq for PowerlineWidth
Auto Trait Implementations§
impl Freeze for PowerlineWidth
impl RefUnwindSafe for PowerlineWidth
impl Send for PowerlineWidth
impl Sync for PowerlineWidth
impl Unpin for PowerlineWidth
impl UnsafeUnpin for PowerlineWidth
impl UnwindSafe for PowerlineWidth
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.