Skip to main content

IAnimatedServerObject

Trait IAnimatedServerObject 

Source
pub trait IAnimatedServerObject: IServerObject + IServerAnimatedPropertyHost {
    // Required methods
    fn server_object(&self) -> &ServerObject;
    fn as_server_object_dyn(&self) -> &dyn IServerObject;

    // Provided method
    fn get_composition_property(
        &self,
        _field_name: &str,
    ) -> Option<&'static CompositionProperty> { ... }
}
Expand description

A server object that supports animated properties: what upstream’s abstract ServerObject is to its subclasses.

A class “derives” from ServerObject by embedding a ServerObject and implementing this trait; the embedded part reaches the class through it.

Required Methods§

Source

fn server_object(&self) -> &ServerObject

The embedded ServerObject part.

Source

fn as_server_object_dyn(&self) -> &dyn IServerObject

The object as the base contract (an explicit upcast).

Provided Methods§

Source

fn get_composition_property( &self, _field_name: &str, ) -> Option<&'static CompositionProperty>

The composition property with the given name, if the class has one.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§