#[non_exhaustive]pub enum FontPreset {
Latin,
Korean,
SimplifiedChinese,
TraditionalChinese,
Japanese,
Cyrillic,
Custom(Vec<String>),
}Expand description
A preset represents a prioritized group of candidate font families.
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.
Latin
Korean
SimplifiedChinese
TraditionalChinese
Japanese
Cyrillic
Custom(Vec<String>)
Custom font family names, in priority order.
Trait Implementations§
Source§impl Clone for FontPreset
impl Clone for FontPreset
Source§fn clone(&self) -> FontPreset
fn clone(&self) -> FontPreset
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 moreAuto Trait Implementations§
impl Freeze for FontPreset
impl RefUnwindSafe for FontPreset
impl Send for FontPreset
impl Sync for FontPreset
impl Unpin for FontPreset
impl UnsafeUnpin for FontPreset
impl UnwindSafe for FontPreset
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