pub trait AsCompositionObject: 'static {
// Required methods
fn as_composition_object(&self) -> &CompositionObject;
fn composition_type_name(&self) -> &'static str;
// Provided method
fn as_property_set(self: Rc<Self>) -> Option<Rc<CompositionPropertySet>> { ... }
}Expand description
A composition object as code refers to any composition object: a
reference parameter of an animation, an object stored in a property set
(upstream CompositionObject as a parameter type).
Required Methods§
Sourcefn as_composition_object(&self) -> &CompositionObject
fn as_composition_object(&self) -> &CompositionObject
The embedded CompositionObject.
Sourcefn composition_type_name(&self) -> &'static str
fn composition_type_name(&self) -> &'static str
The name of the class of the object, for messages.
Provided Methods§
Sourcefn as_property_set(self: Rc<Self>) -> Option<Rc<CompositionPropertySet>>
fn as_property_set(self: Rc<Self>) -> Option<Rc<CompositionPropertySet>>
The object as a property set, if it is one (the is CompositionPropertySet test of upstream).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".