pub unsafe trait UnsafeAnyExt {
    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> { ... }
}
Expand description

An extension trait for unchecked downcasting of trait objects.

Safety

See specific funtion calls for areas to be aware of.

Provided Methods

Returns a reference to the contained value, assuming that it is of type T.

Safety

If you are not absolutely certain of T you should not call this!

Returns a mutable reference to the contained value, assuming that it is of type T.

Safety

If you are not absolutely certain of T you should not call this!

Returns a the contained value, assuming that it is of type T.

Safety

If you are not absolutely certain of T you should not call this!

Implementations on Foreign Types

Implementors