[][src]Enum azul_webrender_api::PropertyBinding

#[repr(C)]pub enum PropertyBinding<T> {
    Value(T),
    Binding(PropertyBindingKey<T>, T),
}

A binding property can either be a specific value (the normal, non-animated case) or point to a binding location to fetch the current value from. Note that Binding has also a non-animated value, the value is used for the case where the animation is still in-delay phase (i.e. the animation doesn't produce any animation values).

Variants

Value(T)

Non-animated value.

Binding(PropertyBindingKey<T>, T)

Animated binding.

Trait Implementations

impl<T: Clone> Clone for PropertyBinding<T>[src]

impl<T: Copy> Copy for PropertyBinding<T>[src]

impl<T: Debug> Debug for PropertyBinding<T>[src]

impl<T: Default> Default for PropertyBinding<T>[src]

impl<'de, T> Deserialize<'de> for PropertyBinding<T> where
    T: Deserialize<'de>, 
[src]

impl<T: Eq> Eq for PropertyBinding<T>[src]

impl From<PropertyBinding<ColorF>> for PropertyBinding<ColorU>[src]

impl From<PropertyBinding<ColorU>> for PropertyBinding<ColorF>[src]

impl<T> From<T> for PropertyBinding<T>[src]

impl<T: Hash> Hash for PropertyBinding<T>[src]

impl<T> MallocSizeOf for PropertyBinding<T> where
    T: MallocSizeOf
[src]

impl<T: PartialEq> PartialEq<PropertyBinding<T>> for PropertyBinding<T>[src]

impl<T> Peek for PropertyBinding<T> where
    T: Default,
    T: Peek
[src]

impl<T> Poke for PropertyBinding<T> where
    T: Poke,
    PropertyBindingKey<T>: Poke
[src]

impl<T> Serialize for PropertyBinding<T> where
    T: Serialize
[src]

impl<T> StructuralEq for PropertyBinding<T>[src]

impl<T> StructuralPartialEq for PropertyBinding<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for PropertyBinding<T> where
    T: RefUnwindSafe

impl<T> Send for PropertyBinding<T> where
    T: Send

impl<T> Sync for PropertyBinding<T> where
    T: Sync

impl<T> Unpin for PropertyBinding<T> where
    T: Unpin

impl<T> UnwindSafe for PropertyBinding<T> where
    T: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<!> for T[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.