#[non_exhaustive]pub enum Role {
Show 17 variants
Background,
Dim,
Star,
Sun,
Planet,
Particle,
Wave,
Hot,
Cold,
Structure,
Accent,
Text,
Seq,
Div,
Phase,
Blackbody,
Ramp(Ramp),
}Expand description
What a cell means; themes turn roles into colors (ADR-0004, CORE-R8).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Background
Dim
Star
Sun
Planet
Particle
Wave
Hot
Cold
Structure
Accent
Text
Seq
Sequential scalar field: level 0 = low, 255 = high (CORE-R46). Build with seq.
Div
Signed scalar field: level 128 = zero, 0 = most negative, 255 = most positive
(CORE-R46). Build with div.
Phase
Cyclic field: level is a phase angle, one turn over 256 levels, so 255 sits next
to 0 (CORE-R78). Build with phase.
Blackbody
Temperature on a log scale, 1000 K at level 0 to 30 000 K at 255, drawn in the
colour of a blackbody (CORE-R79). Build with blackbody.
Ramp(Ramp)
Sequential field in a named ramp: level 0 = low, 255 = high (CORE-R80). Build with
ramp().
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Forget for Role
impl Freeze for Role
impl Move 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