Enum style::values::computed::font::SingleFontFamily
[−]
[src]
pub enum SingleFontFamily {
FamilyName(FamilyName),
Generic(Atom),
}A set of faces that vary in weight, width or slope.
Variants
FamilyName(FamilyName)The name of a font family of choice.
Generic(Atom)Generic family name.
Methods
impl SingleFontFamily[src]
pub fn atom(&self) -> &Atom[src]
Get font family name as Atom
pub fn name(&self) -> &str[src]
Get font family name
pub fn from_atom(input: Atom) -> SingleFontFamily[src]
Get the corresponding font-family with Atom
pub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>[src]
Parse a font-family value
Trait Implementations
impl Clone for SingleFontFamily[src]
fn clone(&self) -> SingleFontFamily[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for SingleFontFamily[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for SingleFontFamily[src]
impl Hash for SingleFontFamily[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl MallocSizeOf for SingleFontFamily[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl PartialEq for SingleFontFamily[src]
fn eq(&self, __arg_0: &SingleFontFamily) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SingleFontFamily) -> bool[src]
This method tests for !=.