anymap2::any

Trait UncheckedAnyExt

Source
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§

Source

unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T

Source

unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T

Source

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.

Implementors§