Struct style::values::computed::font::FamilyName
[−]
[src]
pub struct FamilyName {
pub name: Atom,
pub syntax: FamilyNameSyntax,
}The name of a font family of choice
Fields
name: Atom
Name of the font family
syntax: FamilyNameSyntax
Syntax of the font family
Trait Implementations
impl Clone for FamilyName[src]
fn clone(&self) -> FamilyName[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 FamilyName[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for FamilyName[src]
impl Hash for FamilyName[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 FamilyName[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 FamilyName[src]
fn eq(&self, __arg_0: &FamilyName) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FamilyName) -> bool[src]
This method tests for !=.
impl ToCss for FamilyName[src]
fn to_css<W>(&self, dest: &mut W) -> Result where
W: Write, [src]
W: Write,
Serialize self in CSS syntax, writing to dest.
fn to_css_string(&self) -> String[src]
Serialize self in CSS syntax and return a string. Read more
impl Parse for FamilyName[src]
FamilyName::parse is based on SingleFontFamily::parse and not the other way around
because we want the former to exclude generic family keywords.
fn parse<'i, 't>(
_: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>[src]
_: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more