pub trait UncheckedAnyExt: Any {
// Required methods
unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T;
unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T;
unsafe fn downcast_unchecked<T: Any>(self: Box<Self>) -> Box<T>;
}
Required Methods§
unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T
unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T
unsafe fn downcast_unchecked<T: Any>(self: Box<Self>) -> Box<T>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.