[][src]Enum sixtyfps_interpreter::Value

pub enum Value {
    Void,
    Number(f64),
    String(SharedString),
    Bool(bool),
    Resource(Resource),
    Array(Vec<Value>),
    Model(ModelPtr),
    Object(HashMap<String, Value>),
    Color(Color),
    PathElements(PathData),
    EasingCurve(EasingCurve),
    EnumerationValue(StringString),
}

This is a dynamically typed Value used in the interpreter, it need to be able to be converted from and to anything that can be stored in a Property

Variants

Void

There is nothing in this value. That's the default. For example, a function that do not return a result would return a Value::Void

Number(f64)

An i32 or a float

String(SharedString)

String

Bool(bool)

Bool

Resource(Resource)

A resource (typically an image)

Array(Vec<Value>)

An Array

Model(ModelPtr)

A more complex model which is not created by the interpreter itself

Object(HashMap<String, Value>)

An object

Color(Color)

A color

PathElements(PathData)

The elements of a path

EasingCurve(EasingCurve)

An easing curve

EnumerationValue(StringString)

An enumation, like TextHorizontalAlignment::align_center

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl Default for Value[src]

impl PartialEq<Value> for Value[src]

impl StructuralPartialEq for Value[src]

impl TryFrom<Color> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<EasingCurve> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<HashMap<String, Value, RandomState>> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<Instant> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<LayoutAlignment> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<PathData> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<Resource> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<SharedString> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<StandardListViewItem> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<StateInfo> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<TextHorizontalAlignment> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<TextVerticalAlignment> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<bool> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<f32> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<f64> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<i32> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<i64> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<isize> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<u32> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<u64> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<usize> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<Color> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<EasingCurve> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<HashMap<String, Value, RandomState>> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<Instant> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<LayoutAlignment> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<PathData> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<Resource> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<SharedString> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<StandardListViewItem> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<StateInfo> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<TextHorizontalAlignment> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<TextVerticalAlignment> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<bool> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<f32> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<f64> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<i32> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<i64> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<isize> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<u32> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<u64> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryInto<usize> for Value[src]

type Error = ()

The type returned in the event of a conversion error.

impl ValueType for Value[src]

Auto Trait Implementations

impl !RefUnwindSafe for Value

impl !Send for Value

impl !Sync for Value

impl Unpin for Value

impl !UnwindSafe for Value

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.