Type Alias rsvg::length::Length

source ·
pub type Length<N> = CssLength<N, Signed>;
Expand description

Alias for CssLength types that can have negative values

Aliased Type§

struct Length<N> {
    pub length: f64,
    pub unit: LengthUnit,
    orientation: PhantomData<N>,
    validation: PhantomData<Signed>,
}

Fields§

§length: f64

Numeric part of the length

§unit: LengthUnit

Unit part of the length

§orientation: PhantomData<N>

Dummy; used internally for the type parameter N

§validation: PhantomData<Signed>

Dummy; used internally for the type parameter V