pub enum ComponentRole {
Show 15 variants
Body,
Muted,
Accent,
Success,
Error,
PromptQuestion,
PromptAnswer,
PromptPlaceholder,
PromptCursor,
PromptOption,
PromptOptionSelected,
PromptButton,
PromptButtonFocused,
PromptHelp,
PromptError,
}Expand description
A reusable text component understood by all urushi consumers.
Every ComponentRole resolves to a TextStyle. Roles whose value is a
rectangle — a panel — are PanelRole values instead, because geometry
lives on BlockStyle.
Variants§
Body
Muted
Accent
Success
Error
PromptQuestion
PromptAnswer
PromptPlaceholder
PromptCursor
PromptOption
PromptOptionSelected
PromptButton
PromptButtonFocused
PromptHelp
PromptError
Trait Implementations§
Source§impl Clone for ComponentRole
impl Clone for ComponentRole
Source§fn clone(&self) -> ComponentRole
fn clone(&self) -> ComponentRole
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 ComponentRole
impl Debug for ComponentRole
Source§impl PartialEq for ComponentRole
impl PartialEq for ComponentRole
Source§fn eq(&self, other: &ComponentRole) -> bool
fn eq(&self, other: &ComponentRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TextThemeRole for ComponentRole
impl TextThemeRole for ComponentRole
impl Copy for ComponentRole
impl Eq for ComponentRole
impl StructuralPartialEq for ComponentRole
Auto Trait Implementations§
impl Freeze for ComponentRole
impl RefUnwindSafe for ComponentRole
impl Send for ComponentRole
impl Sync for ComponentRole
impl Unpin for ComponentRole
impl UnsafeUnpin for ComponentRole
impl UnwindSafe for ComponentRole
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