pub enum GenericFontFamilyDef {
Serif,
SansSerif,
Monospace,
Cursive,
Fantasy,
SystemUi,
Emoji,
Math,
Fangsong,
}
Expand description
Local mirror of fidl_fuchsia_fonts::GenericFontFamily
, for use in JSON serialization.
Serialized values are in kebab-case, e.g. "sans-serif"
.
Variants§
Implementations§
Source§impl<'de> GenericFontFamilyDef
impl<'de> GenericFontFamilyDef
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenericFontFamily, __D::Error>where
__D: Deserializer<'de>,
Source§impl GenericFontFamilyDef
impl GenericFontFamilyDef
pub fn serialize<__S>(
__self: &GenericFontFamily,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Trait Implementations§
Source§impl Clone for GenericFontFamilyDef
impl Clone for GenericFontFamilyDef
Source§fn clone(&self) -> GenericFontFamilyDef
fn clone(&self) -> GenericFontFamilyDef
Returns a copy 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 GenericFontFamilyDef
impl Debug for GenericFontFamilyDef
Source§impl Hash for GenericFontFamilyDef
impl Hash for GenericFontFamilyDef
Source§impl PartialEq for GenericFontFamilyDef
impl PartialEq for GenericFontFamilyDef
impl Eq for GenericFontFamilyDef
impl StructuralPartialEq for GenericFontFamilyDef
Auto Trait Implementations§
impl Freeze for GenericFontFamilyDef
impl RefUnwindSafe for GenericFontFamilyDef
impl Send for GenericFontFamilyDef
impl Sync for GenericFontFamilyDef
impl Unpin for GenericFontFamilyDef
impl UnwindSafe for GenericFontFamilyDef
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)