pub struct ParameterExpression {
pub name: String,
}Expand description
A reference to a parameter of the animation.
Fields§
§name: StringImplementations§
Source§impl ParameterExpression
impl ParameterExpression
pub fn new(name: impl Into<String>) -> Self
pub fn evaluate( &self, context: &ExpressionEvaluationContext<'_>, ) -> ExpressionVariant
Trait Implementations§
Source§impl Clone for ParameterExpression
impl Clone for ParameterExpression
Source§impl Debug for ParameterExpression
impl Debug for ParameterExpression
Source§impl Display for ParameterExpression
impl Display for ParameterExpression
Source§impl From<ParameterExpression> for Expression
impl From<ParameterExpression> for Expression
Source§fn from(value: ParameterExpression) -> Expression
fn from(value: ParameterExpression) -> Expression
Converts to this type from the input type.
Source§impl PartialEq for ParameterExpression
impl PartialEq for ParameterExpression
impl StructuralPartialEq for ParameterExpression
Auto Trait Implementations§
impl Freeze for ParameterExpression
impl RefUnwindSafe for ParameterExpression
impl Send for ParameterExpression
impl Sync for ParameterExpression
impl Unpin for ParameterExpression
impl UnsafeUnpin for ParameterExpression
impl UnwindSafe for ParameterExpression
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more