#[repr(C)]pub enum PropertyBinding<T> {
Value(T),
Binding(PropertyBindingKey<T>, T),
}
Expand description
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§
Trait Implementations§
Source§impl<T: Clone> Clone for PropertyBinding<T>
impl<T: Clone> Clone for PropertyBinding<T>
Source§fn clone(&self) -> PropertyBinding<T>
fn clone(&self) -> PropertyBinding<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for PropertyBinding<T>
impl<T: Debug> Debug for PropertyBinding<T>
Source§impl<T: Default> Default for PropertyBinding<T>
impl<T: Default> Default for PropertyBinding<T>
Source§impl<'de, T> Deserialize<'de> for PropertyBinding<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PropertyBinding<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PropertyBinding<ColorF>> for PropertyBinding<ColorU>
impl From<PropertyBinding<ColorF>> for PropertyBinding<ColorU>
Source§fn from(value: PropertyBinding<ColorF>) -> PropertyBinding<ColorU>
fn from(value: PropertyBinding<ColorF>) -> PropertyBinding<ColorU>
Converts to this type from the input type.
Source§impl From<PropertyBinding<ColorU>> for PropertyBinding<ColorF>
impl From<PropertyBinding<ColorU>> for PropertyBinding<ColorF>
Source§fn from(value: PropertyBinding<ColorU>) -> PropertyBinding<ColorF>
fn from(value: PropertyBinding<ColorU>) -> PropertyBinding<ColorF>
Converts to this type from the input type.
Source§impl<T> From<T> for PropertyBinding<T>
impl<T> From<T> for PropertyBinding<T>
Source§fn from(value: T) -> PropertyBinding<T>
fn from(value: T) -> PropertyBinding<T>
Converts to this type from the input type.
Source§impl<T: Hash> Hash for PropertyBinding<T>
impl<T: Hash> Hash for PropertyBinding<T>
Source§impl<T> MallocSizeOf for PropertyBinding<T>where
T: MallocSizeOf,
impl<T> MallocSizeOf for PropertyBinding<T>where
T: MallocSizeOf,
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl<T: PartialEq> PartialEq for PropertyBinding<T>
impl<T: PartialEq> PartialEq for PropertyBinding<T>
Source§impl<T> Peek for PropertyBinding<T>
impl<T> Peek for PropertyBinding<T>
Source§impl<T> Poke for PropertyBinding<T>
impl<T> Poke for PropertyBinding<T>
Source§impl<T> Serialize for PropertyBinding<T>where
T: Serialize,
impl<T> Serialize for PropertyBinding<T>where
T: Serialize,
impl<T: Copy> Copy for PropertyBinding<T>
impl<T: Eq> Eq for PropertyBinding<T>
impl<T> StructuralPartialEq for PropertyBinding<T>
Auto Trait Implementations§
impl<T> Freeze for PropertyBinding<T>where
T: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more