[][src]Enum rsvg_internals::LengthUnit

#[repr(C)]pub enum LengthUnit {
    Percent,
    Px,
    Em,
    Ex,
    In,
    Cm,
    Mm,
    Pt,
    Pc,
}

Units for length values.

Variants

Percent

1.0 means 100%

Px

Pixels, or the CSS default unit

Em

Size of the current font

Ex

x-height of the current font

In

Inches (25.4 mm)

Cm

Centimeters

Mm

Millimeters

Pt

Points (1/72 inch)

Pc

Picas (12 points)

Trait Implementations

impl Clone for LengthUnit[src]

impl Copy for LengthUnit[src]

impl Debug for LengthUnit[src]

impl PartialEq<LengthUnit> for LengthUnit[src]

impl StructuralPartialEq for LengthUnit[src]

Auto Trait Implementations

impl RefUnwindSafe for LengthUnit

impl Send for LengthUnit

impl Sync for LengthUnit

impl Unpin for LengthUnit

impl UnwindSafe for LengthUnit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,