Enum webrender_api::PropertyBinding
[−]
[src]
pub enum PropertyBinding<T> { Value(T), Binding(PropertyBindingKey<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.
Variants
Value(T)
Binding(PropertyBindingKey<T>)
Trait Implementations
impl<T: Clone> Clone for PropertyBinding<T>
[src]
fn clone(&self) -> PropertyBinding<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for PropertyBinding<T>
[src]
impl<T: Debug> Debug for PropertyBinding<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for PropertyBinding<T>
[src]
fn eq(&self, __arg_0: &PropertyBinding<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PropertyBinding<T>) -> bool
[src]
This method tests for !=
.
impl<T> From<T> for PropertyBinding<T>
[src]
fn from(value: T) -> PropertyBinding<T>
[src]
Performs the conversion.
impl<T> From<PropertyBindingKey<T>> for PropertyBinding<T>
[src]
fn from(key: PropertyBindingKey<T>) -> PropertyBinding<T>
[src]
Performs the conversion.