Skip to main content

ICompositionObject

Trait ICompositionObject 

Source
pub trait ICompositionObject: 'static {
    // Required methods
    fn server(&self) -> ServerObjectId;
    fn as_any(&self) -> &dyn Any;
    fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>;
}
Expand description

A UI-thread composition object as other composition objects refer to it: something with a server-side counterpart.

Required Methods§

Source

fn server(&self) -> ServerObjectId

The id of the server-side counterpart of the object.

Source

fn as_any(&self) -> &dyn Any

Source

fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§