Struct style::values::specified::length::CharacterWidth
[−]
[src]
pub struct CharacterWidth(pub i32);
HTML5 "character width", as defined in HTML5 § 14.5.4.
Methods
impl CharacterWidth[src]
pub fn to_computed_value(&self, reference_font_size: Au) -> CSSPixelLength[src]
Computes the given character width.
Trait Implementations
impl Clone for CharacterWidth[src]
fn clone(&self) -> CharacterWidth[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 CharacterWidth[src]
impl Debug for CharacterWidth[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for CharacterWidth[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 CharacterWidth[src]
fn eq(&self, __arg_0: &CharacterWidth) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CharacterWidth) -> bool[src]
This method tests for !=.