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§
§impl From<FontStyle> for TextAttribute
impl From<FontStyle> for TextAttribute
§fn 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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.