Enum mon_artist::svg::Dim [] [src]

pub enum Dim {
    U(u32u32),
    Px(u32),
    Pc(u32u32),
    FU(f64),
}

Dim is a measure of dimension. They are meant to carry units, though it can be omitted via the U variant.

Variants

Unit-less; e.g. U(50,1) is "50.1"

Pixel count; e.g. Px(50) is "50px"

Pct stands for "Percent". e.g. Pc(50) is "50%"

Methods

impl Dim
[src]

Trait Implementations

impl Copy for Dim
[src]

impl Clone for Dim
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Dim
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Dim
[src]

Formats the value using the given formatter.

impl Default for Dim
[src]

Returns the "default value" for a type. Read more

impl Mul<u32> for Dim
[src]

The resulting type after applying the * operator

The method for the * operator