Enum primitives::prelude::TextStyleKind
source · [−]pub enum TextStyleKind {
Button,
Body,
Headline,
Subhead,
Smallprint,
Oversized,
Custom {
value: u32,
},
}
Expand description
Representing default identifiers of TextStyle
s.
Can be extended with Custom by using concrete project values.
Variants
Button
Button text style
Body
Body text style
Headline
Headline text style
Subhead
Subhead text style
Smallprint
Smallprint text style
Oversized
Oversized text style
Custom
Fields
value: u32
Custom value
Allows TextStyleKind to be extended (e.g. for using project specific text styles).
Trait Implementations
sourceimpl Clone for TextStyleKind
impl Clone for TextStyleKind
sourcefn clone(&self) -> TextStyleKind
fn clone(&self) -> TextStyleKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextStyleKind
impl Debug for TextStyleKind
sourceimpl PartialEq<TextStyleKind> for TextStyleKind
impl PartialEq<TextStyleKind> for TextStyleKind
sourcefn eq(&self, other: &TextStyleKind) -> bool
fn eq(&self, other: &TextStyleKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TextStyleKind) -> bool
fn ne(&self, other: &TextStyleKind) -> bool
This method tests for !=
.
impl Copy for TextStyleKind
impl Eq for TextStyleKind
impl StructuralEq for TextStyleKind
impl StructuralPartialEq for TextStyleKind
Auto Trait Implementations
impl RefUnwindSafe for TextStyleKind
impl Send for TextStyleKind
impl Sync for TextStyleKind
impl Unpin for TextStyleKind
impl UnwindSafe for TextStyleKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more