#[non_exhaustive]pub enum FontSynthesis {
None,
Position,
SmallCaps,
Style,
Weight,
Raw(Raw),
}Expand description
A value of font-synthesis.
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.
None
none.
Position
position.
SmallCaps
small-caps.
Style
style.
Weight
weight.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for FontSynthesis
impl Clone for FontSynthesis
Source§fn clone(&self) -> FontSynthesis
fn clone(&self) -> FontSynthesis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontSynthesis
impl Debug for FontSynthesis
Source§impl Display for FontSynthesis
impl Display for FontSynthesis
Source§impl From<Raw> for FontSynthesis
impl From<Raw> for FontSynthesis
Source§impl PartialEq for FontSynthesis
impl PartialEq for FontSynthesis
impl StructuralPartialEq for FontSynthesis
Auto Trait Implementations§
impl Freeze for FontSynthesis
impl RefUnwindSafe for FontSynthesis
impl Send for FontSynthesis
impl Sync for FontSynthesis
impl Unpin for FontSynthesis
impl UnsafeUnpin for FontSynthesis
impl UnwindSafe for FontSynthesis
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