pub struct BoundValue {
pub binding: ValueBinding,
pub value: TrackValue,
}Expand description
A value that is bound to a property.
Fields§
§binding: ValueBindingA property to which the value is bound to.
value: TrackValueThe new value for the property the binding points to.
Implementations§
Source§impl BoundValue
impl BoundValue
Sourcepub fn blend_with(&mut self, other: &Self, weight: f32)
pub fn blend_with(&mut self, other: &Self, weight: f32)
Blends the current value with an other value using the given weight. See TrackValue::blend_with for
more info.
Sourcepub fn apply_to_object(
&self,
object: &mut dyn Reflect,
property_path: &str,
value_type: ValueType,
)
pub fn apply_to_object( &self, object: &mut dyn Reflect, property_path: &str, value_type: ValueType, )
Sets a property of the given object.
Trait Implementations§
Source§impl Clone for BoundValue
impl Clone for BoundValue
Source§fn clone(&self) -> BoundValue
fn clone(&self) -> BoundValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoundValue
impl Debug for BoundValue
Source§impl PartialEq for BoundValue
impl PartialEq for BoundValue
Source§fn eq(&self, other: &BoundValue) -> bool
fn eq(&self, other: &BoundValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BoundValue
Auto Trait Implementations§
impl Freeze for BoundValue
impl RefUnwindSafe for BoundValue
impl Send for BoundValue
impl Sync for BoundValue
impl Unpin for BoundValue
impl UnsafeUnpin for BoundValue
impl UnwindSafe for BoundValue
Blanket Implementations§
Source§impl<T> AsyncTaskResult for T
impl<T> AsyncTaskResult for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.