[][src]Struct azul_css::PercentageValue

pub struct PercentageValue { /* fields omitted */ }

Wrapper around FloatValue, represents a percentage instead of just being a regular floating-point value, i.e 5 = 5%

Implementations

impl PercentageValue[src]

pub const fn const_new(value: isize) -> Self[src]

Same as PercentageValue::new(), but only accepts whole numbers, since using f32 in const fn is not yet stabilized.

pub fn new(value: f32) -> Self[src]

pub fn get(&self) -> f32[src]

Trait Implementations

impl Clone for PercentageValue[src]

impl Copy for PercentageValue[src]

impl Debug for PercentageValue[src]

impl Default for PercentageValue[src]

impl Display for PercentageValue[src]

impl Eq for PercentageValue[src]

impl Hash for PercentageValue[src]

impl Ord for PercentageValue[src]

impl PartialEq<PercentageValue> for PercentageValue[src]

impl PartialOrd<PercentageValue> for PercentageValue[src]

impl StructuralEq for PercentageValue[src]

impl StructuralPartialEq for PercentageValue[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> ToString for T where
    T: Display + ?Sized
[src]

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.