Enum mon_artist::svg::Dim
[−]
[src]
pub enum Dim { U(u32, u32), Px(u32), Pc(u32, u32), FU(f64), }
Dim
is a measure of dimension. They are meant to carry units,
though it can be omitted via the U
variant.
Variants
U(u32, u32)
Unit-less; e.g. U(50,1) is "50.1"
Px(u32)
Pixel count; e.g. Px(50) is "50px"
Pc(u32, u32)
Pct stands for "Percent". e.g. Pc(50) is "50%"
FU(f64)
Methods
impl Dim
[src]
Trait Implementations
impl Copy for Dim
[src]
impl Clone for Dim
[src]
fn clone(&self) -> Dim
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
impl PartialEq for Dim
[src]
fn eq(&self, __arg_0: &Dim) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Dim) -> bool
This method tests for !=
.