pub enum TextRole {
AxisLabel,
TickValue,
LegendLabel,
}Expand description
Role of a text element, used to select the right bundle of typography
fields from the active Theme.
Variants§
AxisLabel
Axis titles and category/axis tick labels. Reads label_* fields.
TickValue
Numeric tick labels. Reads numeric_* for family/size; inherits
label_font_weight / label_letter_spacing / label_text_transform.
LegendLabel
Legend labels. Reads legend_* fields.
Trait Implementations§
impl Copy for TextRole
impl Eq for TextRole
impl StructuralPartialEq for TextRole
Auto Trait Implementations§
impl Freeze for TextRole
impl RefUnwindSafe for TextRole
impl Send for TextRole
impl Sync for TextRole
impl Unpin for TextRole
impl UnsafeUnpin for TextRole
impl UnwindSafe for TextRole
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.