[][src]Enum uniui_gui::SizeUnit

pub enum SizeUnit {
    PX(f32),
    PT(f32),
    VH(f32),
    VW(f32),
    VMax(f32),
    VMin(f32),
    Percent(f32),
    EM(f32),
}

Represents value with unit type

Variants

PX(f32)

Pixel

PT(f32)

Point

VH(f32)

View height

VW(f32)

View width

VMax(f32)

View max (width or height)

VMin(f32)

View min (width or height)

Percent(f32)

%

EM(f32)

em

Implementations

impl SizeUnit[src]

pub fn to_native(&self) -> &'static str[src]

???

pub fn to_htmlstring(&self) -> String[src]

Generate string which may be used as a part of html/css

Trait Implementations

impl Clone for SizeUnit[src]

impl Copy for SizeUnit[src]

impl Debug for SizeUnit[src]

Auto Trait Implementations

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> 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>,