Enum style::font_face::Source
[−]
[src]
pub enum Source { Url(UrlSource), Local(FamilyName), }
A source for a font-face rule.
Variants
Url(UrlSource)
A url()
source.
Local(FamilyName)
A local()
source.
Trait Implementations
impl Clone for Source
[src]
fn clone(&self) -> Source
[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 Source
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Source
[src]
impl PartialEq for Source
[src]
fn eq(&self, __arg_0: &Source) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Source) -> bool
[src]
This method tests for !=
.
impl ToCss for Source
[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 OneOrMoreSeparated for Source
[src]
impl Parse for Source
[src]
fn parse<'i, 't>(
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Source, ParseError<'i>>
[src]
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Source, ParseError<'i>>
Parse a value of this type. Read more