Enum style::values::specified::font::MozScriptLevel
[−]
[src]
pub enum MozScriptLevel { Relative(i32), MozAbsolute(i32), Auto, }
Changes the scriptlevel in effect for the children. Ref: https://wiki.mozilla.org/MathML:mstyle
The main effect of scriptlevel is to control the font size. https://www.w3.org/TR/MathML3/chapter3.html#presm.scriptlevel
Variants
Relative(i32)
Change font-size
relatively.
MozAbsolute(i32)
Change font-size
absolutely.
Should only be serialized by presentation attributes, so even though
serialization for this would look the same as for the Relative
variant, it is unexposed, so no big deal.
Auto
Change font-size
automatically.
Trait Implementations
impl Clone for MozScriptLevel
[src]
fn clone(&self) -> MozScriptLevel
[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 Copy for MozScriptLevel
[src]
impl Debug for MozScriptLevel
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for MozScriptLevel
[src]
fn eq(&self, __arg_0: &MozScriptLevel) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MozScriptLevel) -> bool
[src]
This method tests for !=
.
impl ToCss for MozScriptLevel
[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 MozScriptLevel
[src]
fn parse<'i, 't>(
_: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<MozScriptLevel, ParseError<'i>>
[src]
_: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<MozScriptLevel, ParseError<'i>>
Parse a value of this type. Read more