[−][src]Enum sixtyfps_interpreter::Value
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
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)
An Array
Model(ModelPtr)
A more complex model which is not created by the interpreter itself
An object
Color(Color)
A color
PathElements(PathData)
The elements of a path
EasingCurve(EasingCurve)
An easing curve
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.
pub fn try_from(v: Color) -> Result<Self, ()>
[src]
impl TryFrom<EasingCurve> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: EasingCurve) -> Result<Self, ()>
[src]
impl TryFrom<HashMap<String, Value, RandomState>> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: HashMap<String, Value>) -> Result<Self, ()>
[src]
impl TryFrom<Instant> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(value: Instant) -> Result<Self, ()>
[src]
impl TryFrom<LayoutAlignment> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: LayoutAlignment) -> Result<Self, ()>
[src]
impl TryFrom<PathData> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: PathData) -> Result<Self, ()>
[src]
impl TryFrom<Resource> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: Resource) -> Result<Self, ()>
[src]
impl TryFrom<SharedString> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: SharedString) -> Result<Self, ()>
[src]
impl TryFrom<StandardListViewItem> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(
corelib::model::StandardListViewItem { text: text }: StandardListViewItem
) -> Result<Self, ()>
[src]
corelib::model::StandardListViewItem { text: text }: StandardListViewItem
) -> Result<Self, ()>
impl TryFrom<StateInfo> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(
corelib::properties::StateInfo { current_state: current_state, previous_state: previous_state, change_time: change_time }: StateInfo
) -> Result<Self, ()>
[src]
corelib::properties::StateInfo { current_state: current_state, previous_state: previous_state, change_time: change_time }: StateInfo
) -> Result<Self, ()>
impl TryFrom<TextHorizontalAlignment> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: TextHorizontalAlignment) -> Result<Self, ()>
[src]
impl TryFrom<TextVerticalAlignment> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: TextVerticalAlignment) -> Result<Self, ()>
[src]
impl TryFrom<bool> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: bool) -> Result<Self, ()>
[src]
impl TryFrom<f32> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: f32) -> Result<Self, ()>
[src]
impl TryFrom<f64> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: f64) -> Result<Self, ()>
[src]
impl TryFrom<i32> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: i32) -> Result<Self, ()>
[src]
impl TryFrom<i64> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: i64) -> Result<Self, ()>
[src]
impl TryFrom<isize> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: isize) -> Result<Self, ()>
[src]
impl TryFrom<u32> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: u32) -> Result<Self, ()>
[src]
impl TryFrom<u64> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: u64) -> Result<Self, ()>
[src]
impl TryFrom<usize> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(v: usize) -> Result<Self, ()>
[src]
impl TryInto<Color> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Color, ()>
[src]
impl TryInto<EasingCurve> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<EasingCurve, ()>
[src]
impl TryInto<HashMap<String, Value, RandomState>> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<HashMap<String, Value>, ()>
[src]
impl TryInto<Instant> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Instant, ()>
[src]
impl TryInto<LayoutAlignment> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<LayoutAlignment, ()>
[src]
impl TryInto<PathData> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<PathData, ()>
[src]
impl TryInto<Resource> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Resource, ()>
[src]
impl TryInto<SharedString> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<SharedString, ()>
[src]
impl TryInto<StandardListViewItem> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<StandardListViewItem, ()>
[src]
impl TryInto<StateInfo> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<StateInfo, ()>
[src]
impl TryInto<TextHorizontalAlignment> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<TextHorizontalAlignment, ()>
[src]
impl TryInto<TextVerticalAlignment> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<TextVerticalAlignment, ()>
[src]
impl TryInto<bool> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<bool, ()>
[src]
impl TryInto<f32> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<f32, ()>
[src]
impl TryInto<f64> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<f64, ()>
[src]
impl TryInto<i32> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<i32, ()>
[src]
impl TryInto<i64> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<i64, ()>
[src]
impl TryInto<isize> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<isize, ()>
[src]
impl TryInto<u32> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<u32, ()>
[src]
impl TryInto<u64> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<u64, ()>
[src]
impl TryInto<usize> for Value
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<usize, ()>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,