pub struct ServerExpressionObject(pub Rc<dyn IAnimatedServerObject>);Expand description
An animatable server object as an expression reads it: the target of an
animation, or an object an animation refers to through a reference
parameter (upstream passes the ServerObject itself, which implements
IExpressionObject).
Tuple Fields§
§0: Rc<dyn IAnimatedServerObject>Trait Implementations§
Source§impl Clone for ServerExpressionObject
impl Clone for ServerExpressionObject
Source§impl IExpressionObject for ServerExpressionObject
impl IExpressionObject for ServerExpressionObject
Source§fn get_property(&self, name: &str) -> ExpressionVariant
fn get_property(&self, name: &str) -> ExpressionVariant
Gets the value of the property with the given name;
Invalid when
there is no such property.Source§fn key(&self) -> ExpressionObjectKey
fn key(&self) -> ExpressionObjectKey
The identity of the object, used to track the objects an expression
depends on (see
ExpressionTrackedObjects). The default is the
address of the object, which is its reference identity for as long as
the object is alive and not moved; an implementation that has a stable
identifier should return that instead.Auto Trait Implementations§
impl !RefUnwindSafe for ServerExpressionObject
impl !Send for ServerExpressionObject
impl !Sync for ServerExpressionObject
impl !UnwindSafe for ServerExpressionObject
impl Freeze for ServerExpressionObject
impl Unpin for ServerExpressionObject
impl UnsafeUnpin for ServerExpressionObject
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
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