Enum piet_common::FontStyle
source · pub enum FontStyle {
Regular,
Italic,
}Expand description
A font style, which may be italic or regular.
Variants
Regular
Prefer the regular style for the current font family, if available.
Italic
Prefer the italic style for the current font family, if available.
If italic is not available and oblique is, we will use that; if neither is available we will apply synthetic italics to the regular style.
Trait Implementations
sourceimpl From<FontStyle> for TextAttribute
impl From<FontStyle> for TextAttribute
sourcefn from(src: FontStyle) -> TextAttribute
fn from(src: FontStyle) -> TextAttribute
Converts to this type from the input type.
impl Copy for FontStyle
impl Eq for FontStyle
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.