Enum rich_sdl2_rust::ttf::font::FontStyle
source · #[non_exhaustive]pub enum FontStyle {
Normal,
Bold,
Italic,
Underline,
StrikeThrough,
}
Expand description
A text style of a font.
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.
Normal
A normal, plain style.
Bold
A bold style.
Italic
A italic style.
Underline
An underline style.
StrikeThrough
An strike through style.
Trait Implementations§
source§impl PartialEq for FontStyle
impl PartialEq for FontStyle
impl Copy for FontStyle
impl Eq for FontStyle
impl StructuralPartialEq for FontStyle
Auto Trait Implementations§
impl RefUnwindSafe for FontStyle
impl Send for FontStyle
impl Sync for FontStyle
impl Unpin for FontStyle
impl UnwindSafe for FontStyle
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