#[non_exhaustive]pub enum FontStyle {
Default,
MonospacedSerif,
ProportionalSerif,
MonospacedSansSerif,
ProportionalSansSerif,
Casual,
Cursive,
SmallCapitals,
}Available on crate feature
decode only.Expand description
Font style (§79.102 (k) / SPA font-style field; 3-bit, 0–7).
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.
Default
Default / undefined.
MonospacedSerif
Monospaced with serifs.
ProportionalSerif
Proportionally spaced with serifs.
MonospacedSansSerif
Monospaced without serifs.
ProportionalSansSerif
Proportionally spaced without serifs.
Casual
Casual.
Cursive
Cursive.
SmallCapitals
Small capitals.
Implementations§
Trait Implementations§
impl Copy for FontStyle
impl Eq for FontStyle
impl StructuralPartialEq for FontStyle
Auto Trait Implementations§
impl Freeze for FontStyle
impl RefUnwindSafe for FontStyle
impl Send for FontStyle
impl Sync for FontStyle
impl Unpin for FontStyle
impl UnsafeUnpin 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