pub enum SplashRole {
Art,
Tagline,
Rule,
MenuKey,
MenuLabel,
Footer,
}Expand description
What a run of splash text MEANS. Roles, never hues — MenuKey is the
accent on every theme, and no call site knows which accent that is.
Variants§
Art
The wordmark.
Tagline
The one-line statement under the wordmark.
Rule
The divider rule.
MenuKey
The key an operator presses to take a menu entry.
MenuLabel
What that key does.
The bottom fact strip (version, counts, theme).
Implementations§
Source§impl SplashRole
impl SplashRole
Sourcepub fn color(self, c: &ChromePalette) -> Rgb
pub fn color(self, c: &ChromePalette) -> Rgb
Resolve this role against a chrome palette.
Total over the enum — no wildcard arm — so adding a role fails this to compile rather than silently painting it as body text.
Trait Implementations§
Source§impl Clone for SplashRole
impl Clone for SplashRole
Source§fn clone(&self) -> SplashRole
fn clone(&self) -> SplashRole
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 SplashRole
Source§impl Debug for SplashRole
impl Debug for SplashRole
Source§impl<'de> Deserialize<'de> for SplashRole
impl<'de> Deserialize<'de> for SplashRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SplashRole
Source§impl PartialEq for SplashRole
impl PartialEq for SplashRole
Source§impl Serialize for SplashRole
impl Serialize for SplashRole
impl StructuralPartialEq for SplashRole
Auto Trait Implementations§
impl Freeze for SplashRole
impl RefUnwindSafe for SplashRole
impl Send for SplashRole
impl Sync for SplashRole
impl Unpin for SplashRole
impl UnsafeUnpin for SplashRole
impl UnwindSafe for SplashRole
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