[][src]Enum sauron_vdom::Value

pub enum Value {
    Bool(bool),
    String(String),
    Vec(Vec<Value>),
    U8(u8),
    U16(u16),
    U32(u32),
    U64(u64),
    Usize(usize),
    U128(u128),
    I8(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    I128(i128),
    Isize(isize),
    F32(f32),
    F64(f64),
}

Value is an abstraction of the values used in the actual backend. Html and gtk-rs have different set of compatible values therefore a need for a storage of these intermediate value is needed

Variants

Bool(bool)String(String)Vec(Vec<Value>)U8(u8)U16(u16)U32(u32)U64(u64)Usize(usize)U128(u128)I8(i8)I16(i16)I32(i32)I64(i64)I128(i128)Isize(isize)F32(f32)F64(f64)

Methods

impl Value[src]

pub fn as_str(&self) -> Option<&str>[src]

pub fn as_f64(&self) -> Option<f64>[src]

Trait Implementations

impl PartialEq<Value> for Value[src]

impl<'_> From<&'_ str> for Value[src]

impl From<bool> for Value[src]

impl From<String> for Value[src]

impl From<u8> for Value[src]

impl From<u16> for Value[src]

impl From<u32> for Value[src]

impl From<u64> for Value[src]

impl From<u128> for Value[src]

impl From<usize> for Value[src]

impl From<i8> for Value[src]

impl From<i16> for Value[src]

impl From<i32> for Value[src]

impl From<i64> for Value[src]

impl From<i128> for Value[src]

impl From<isize> for Value[src]

impl From<f32> for Value[src]

impl From<f64> for Value[src]

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

impl<T, U, V> From<(T, U, V)> for Value where
    T: Into<Value>,
    U: Into<Value>,
    V: Into<Value>, 
[src]

impl<T, U, V, X> From<(T, U, V, X)> for Value where
    T: Into<Value>,
    U: Into<Value>,
    V: Into<Value>,
    X: Into<Value>, 
[src]

impl<T, U, V, X, Z> From<(T, U, V, X, Z)> for Value where
    T: Into<Value>,
    U: Into<Value>,
    V: Into<Value>,
    X: Into<Value>,
    Z: Into<Value>, 
[src]

impl<T> From<[T; 1]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 2]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 3]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 4]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 5]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 6]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 7]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 8]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 9]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 10]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 11]> for Value where
    T: Into<Value> + Clone
[src]

impl<T> From<[T; 12]> for Value where
    T: Into<Value> + Clone
[src]

impl Clone for Value[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Value[src]

impl Debug for Value[src]

Auto Trait Implementations

impl Send for Value

impl Sync for Value

Blanket Implementations

impl<T, U> Into 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> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.