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§
Sourcefn server(&self) -> ServerObjectId
fn server(&self) -> ServerObjectId
The id of the server-side counterpart of the object.
fn as_any(&self) -> &dyn Any
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".