#[repr(u32)]pub enum GenericFontFamily {
None = 0,
Serif = 1,
SansSerif = 2,
Monospace = 3,
Cursive = 4,
Fantasy = 5,
SystemUi = 6,
}Expand description
A generic font-family name.
The order here is important, if you change it make sure that
gfxPlatformFontList.hs ranged array and gfxFontFamilyList’s
sSingleGenerics are updated as well.
NOTE(emilio): Should be u8, but it’s a u32 because of ABI issues between GCC and LLVM see https://bugs.llvm.org/show_bug.cgi?id=44228 / bug 1600735 / bug 1726515.
Variants§
None = 0
No generic family specified, only for internal usage.
NOTE(emilio): Gecko code relies on this variant being zero.
Serif = 1
SansSerif = 2
Monospace = 3
Cursive = 4
Fantasy = 5
SystemUi = 6
Trait Implementations§
Source§impl Clone for GenericFontFamily
impl Clone for GenericFontFamily
Source§fn clone(&self) -> GenericFontFamily
fn clone(&self) -> GenericFontFamily
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 moreimpl Copy for GenericFontFamily
Source§impl Debug for GenericFontFamily
impl Debug for GenericFontFamily
Source§impl<'de> Deserialize<'de> for GenericFontFamily
impl<'de> Deserialize<'de> for GenericFontFamily
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
impl Eq for GenericFontFamily
Source§impl Hash for GenericFontFamily
impl Hash for GenericFontFamily
Source§impl MallocSizeOf for GenericFontFamily
impl MallocSizeOf for GenericFontFamily
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl Parse for GenericFontFamily
impl Parse for GenericFontFamily
Source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
Source§impl PartialEq for GenericFontFamily
impl PartialEq for GenericFontFamily
Source§fn eq(&self, other: &GenericFontFamily) -> bool
fn eq(&self, other: &GenericFontFamily) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GenericFontFamily
impl Serialize for GenericFontFamily
impl StructuralPartialEq for GenericFontFamily
Source§impl ToComputedValue for GenericFontFamily
impl ToComputedValue for GenericFontFamily
Source§type ComputedValue = GenericFontFamily
type ComputedValue = GenericFontFamily
The computed value type we’re going to be converted to.
Source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
Source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context.Source§impl ToCss for GenericFontFamily
impl ToCss for GenericFontFamily
Source§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
Serialize
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
Serialize
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
Serialize
self in CSS syntax and return a CssString. Read moreSource§impl ToResolvedValue for GenericFontFamily
impl ToResolvedValue for GenericFontFamily
Source§type ResolvedValue = GenericFontFamily
type ResolvedValue = GenericFontFamily
The resolved value type we’re going to be converted to.
Source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
Source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
Source§impl ToShmem for GenericFontFamily
impl ToShmem for GenericFontFamily
Auto Trait Implementations§
impl Freeze for GenericFontFamily
impl RefUnwindSafe for GenericFontFamily
impl Send for GenericFontFamily
impl Sync for GenericFontFamily
impl Unpin for GenericFontFamily
impl UnsafeUnpin for GenericFontFamily
impl UnwindSafe for GenericFontFamily
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert