Enum manifest::serde_ext::GenericFontFamilyDef
source · 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
source§fn eq(&self, other: &GenericFontFamilyDef) -> bool
fn eq(&self, other: &GenericFontFamilyDef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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