pub enum FontChoice {
Basic,
Formal,
Monospace,
Sketchy,
}Expand description
The four bundled UI fonts. Each maps to an embedded face (see
FontChoice::bytes) and a family name used both to install it with the
host and to preview the menu entry in its own typeface.
Variants§
Implementations§
Source§impl FontChoice
impl FontChoice
pub const ALL: [FontChoice; 4]
pub fn display_name(self) -> &'static str
Sourcepub fn family_name(self) -> &'static str
pub fn family_name(self) -> &'static str
The font-family name this face is registered under with the host. Also the key its bytes are stored under.
Trait Implementations§
Source§impl Clone for FontChoice
impl Clone for FontChoice
Source§fn clone(&self) -> FontChoice
fn clone(&self) -> FontChoice
Returns a duplicate of the value. Read more
1.0.0 · 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 FontChoice
impl Debug for FontChoice
Source§impl Default for FontChoice
impl Default for FontChoice
Source§fn default() -> FontChoice
fn default() -> FontChoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FontChoice
impl<'de> Deserialize<'de> for FontChoice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FontChoice
impl PartialEq for FontChoice
Source§impl Serialize for FontChoice
impl Serialize for FontChoice
impl Copy for FontChoice
impl Eq for FontChoice
impl StructuralPartialEq for FontChoice
Auto Trait Implementations§
impl Freeze for FontChoice
impl RefUnwindSafe for FontChoice
impl Send for FontChoice
impl Sync for FontChoice
impl Unpin for FontChoice
impl UnsafeUnpin for FontChoice
impl UnwindSafe for FontChoice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.