pub enum Role {
Show 16 variants
Foreground = 0,
Background = 1,
Muted = 2,
Primary = 3,
Accent = 4,
Success = 5,
Warning = 6,
Error = 7,
Info = 8,
SuccessDim = 9,
WarningDim = 10,
ErrorDim = 11,
PrimaryDim = 12,
AccentDim = 13,
Surface = 14,
Border = 15,
}Expand description
Semantic color slot a segment targets. Themes map every role to a concrete color; segments never reference hex values directly. Variants are ordered to match the 16-slot role array themes store.
Variants§
Foreground = 0
Background = 1
Muted = 2
Primary = 3
Accent = 4
Success = 5
Warning = 6
Error = 7
Info = 8
SuccessDim = 9
WarningDim = 10
ErrorDim = 11
PrimaryDim = 12
AccentDim = 13
Surface = 14
Border = 15
Implementations§
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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.