[−][src]Trait unsafe_any::UnsafeAny 
A trait providing unchecked downcasting to its contents when stored in a trait object.
Methods
impl dyn UnsafeAny[src]
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T[src]
Returns a reference to the contained value, assuming that it is of type T.
Warning
If you are not absolutely certain of T you should not call this!
pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T[src]
Returns a mutable reference to the contained value, assuming that it is of type T.
Warning
If you are not absolutely certain of T you should not call this!
pub unsafe fn downcast_unchecked<T: Any>(self: Box<dyn UnsafeAny>) -> Box<T>[src]
Returns a the contained value, assuming that it is of type T.
Warning
If you are not absolutely certain of T you should not call this!
Trait Implementations
impl UnsafeAnyExt for dyn UnsafeAny[src]
unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T[src]
Returns a reference to the contained value, assuming that it is of type T. Read more
unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T[src]
Returns a mutable reference to the contained value, assuming that it is of type T. Read more
unsafe fn downcast_unchecked<T: Any>(self: Box<Self>) -> Box<T>[src]
Returns a the contained value, assuming that it is of type T. Read more
impl UnsafeAnyExt for dyn UnsafeAny + Send[src]
unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T[src]
Returns a reference to the contained value, assuming that it is of type T. Read more
unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T[src]
Returns a mutable reference to the contained value, assuming that it is of type T. Read more
unsafe fn downcast_unchecked<T: Any>(self: Box<Self>) -> Box<T>[src]
Returns a the contained value, assuming that it is of type T. Read more
impl UnsafeAnyExt for dyn UnsafeAny + Sync[src]
unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T[src]
Returns a reference to the contained value, assuming that it is of type T. Read more
unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T[src]
Returns a mutable reference to the contained value, assuming that it is of type T. Read more
unsafe fn downcast_unchecked<T: Any>(self: Box<Self>) -> Box<T>[src]
Returns a the contained value, assuming that it is of type T. Read more
impl UnsafeAnyExt for dyn UnsafeAny + Send + Sync[src]
unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T[src]
Returns a reference to the contained value, assuming that it is of type T. Read more
unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T[src]
Returns a mutable reference to the contained value, assuming that it is of type T. Read more
unsafe fn downcast_unchecked<T: Any>(self: Box<Self>) -> Box<T>[src]
Returns a the contained value, assuming that it is of type T. Read more