Enum style::values::specified::length::AbsoluteLength
[−]
[src]
pub enum AbsoluteLength { Px(CSSFloat), In(CSSFloat), Cm(CSSFloat), Mm(CSSFloat), Q(CSSFloat), Pt(CSSFloat), Pc(CSSFloat), }
Represents an absolute length with its unit
Variants
Px(CSSFloat)
An absolute length in pixels (px)
In(CSSFloat)
An absolute length in inches (in)
Cm(CSSFloat)
An absolute length in centimeters (cm)
Mm(CSSFloat)
An absolute length in millimeters (mm)
Q(CSSFloat)
An absolute length in quarter-millimeters (q)
Pt(CSSFloat)
An absolute length in points (pt)
Pc(CSSFloat)
An absolute length in pica (pc)
Methods
impl AbsoluteLength
[src]
Trait Implementations
impl Clone for AbsoluteLength
[src]
fn clone(&self) -> AbsoluteLength
[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 AbsoluteLength
[src]
impl Debug for AbsoluteLength
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for AbsoluteLength
[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 AbsoluteLength
[src]
fn eq(&self, __arg_0: &AbsoluteLength) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AbsoluteLength) -> bool
[src]
This method tests for !=
.
impl ToCss for AbsoluteLength
[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 ToComputedValue for AbsoluteLength
[src]
type ComputedValue = CSSPixelLength
The computed value type we're going to be converted to.
fn to_computed_value(&self, _: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[src]
Convert a computed value to specified value form. Read more
impl Mul<CSSFloat> for AbsoluteLength
[src]
type Output = AbsoluteLength
The resulting type after applying the *
operator.
fn mul(self, scalar: CSSFloat) -> AbsoluteLength
[src]
Performs the *
operation.