pub enum StandardFont {
Show 14 variants
TimesRoman,
TimesBold,
TimesItalic,
TimesBoldItalic,
Helvetica,
HelveticaBold,
HelveticaOblique,
HelveticaBoldOblique,
Courier,
CourierBold,
CourierOblique,
CourierBoldOblique,
Symbol,
ZapfDingbats,
}Variants§
TimesRoman
TimesBold
TimesItalic
TimesBoldItalic
Helvetica
HelveticaBold
HelveticaOblique
HelveticaBoldOblique
Courier
CourierBold
CourierOblique
CourierBoldOblique
Symbol
ZapfDingbats
Implementations§
Source§impl StandardFont
impl StandardFont
pub const fn family_name(self) -> &'static str
pub const fn font_style(self) -> FontStyle
pub const fn font_weight(self) -> FontWeight
pub const fn as_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for StandardFont
impl Clone for StandardFont
Source§fn clone(&self) -> StandardFont
fn clone(&self) -> StandardFont
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 StandardFont
impl Debug for StandardFont
Source§impl Hash for StandardFont
impl Hash for StandardFont
Source§impl PartialEq for StandardFont
impl PartialEq for StandardFont
Source§fn eq(&self, other: &StandardFont) -> bool
fn eq(&self, other: &StandardFont) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StandardFont
impl Eq for StandardFont
impl StructuralPartialEq for StandardFont
Auto Trait Implementations§
impl Freeze for StandardFont
impl RefUnwindSafe for StandardFont
impl Send for StandardFont
impl Sync for StandardFont
impl Unpin for StandardFont
impl UnsafeUnpin for StandardFont
impl UnwindSafe for StandardFont
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