pub trait FileDescriptionExt: 'static {
// Required method
fn into_rc_any(self: FileDescriptionRef<Self>) -> Rc<dyn Any>;
}Expand description
A helper trait to indirectly allow downcasting on Rc<FdIdWith<dyn _>>.
Ideally we’d just add a FdIdWith<Self>: Any bound to the FileDescription trait,
but that does not allow upcasting.
Required Methods§
fn into_rc_any(self: FileDescriptionRef<Self>) -> Rc<dyn Any>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".