Struct lyon_svg::parser::Length
[−]
[src]
pub struct Length {
pub num: f64,
pub unit: LengthUnit,
}Representation of the <length> type.
Fields
num: f64
unit: LengthUnit
Methods
impl Length
fn new(num: f64, unit: LengthUnit) -> Length
Constructs a new length.
Trait Implementations
impl Copy for Length
impl PartialEq<Length> for Length
fn eq(&self, __arg_0: &Length) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Length) -> bool
This method tests for !=.
impl Debug for Length
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for Length
fn clone(&self) -> Length
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more