Enum webrender_api::PropertyBinding
source · #[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§fn eq(&self, other: &PropertyBinding<T>) -> bool
fn eq(&self, other: &PropertyBinding<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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