Struct svgparser::Length
[−]
[src]
pub struct Length { pub num: f64, pub unit: LengthUnit, }
Representation of the <length>
type.
Fields
num: f64
unit: LengthUnit
Methods
impl Length
[src]
pub fn new(num: f64, unit: LengthUnit) -> Length
[src]
Constructs a new length.
Trait Implementations
impl Clone for Length
[src]
fn clone(&self) -> Length
[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 Length
[src]
impl Debug for Length
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more