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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more