Crate unsafe_any
source · [−]Expand description
Traits for unsafe downcasting from trait objects to & or &mut references of concrete types. These should only be used if you are absolutely certain of the type of the data in said trait object - there be dragons etc.
Originally inspired by https://github.com/chris-morgan/anymap
and the implementation of std::any::Any
.
Traits
A trait providing unchecked downcasting to its contents when stored in a trait object.
An extension trait for unchecked downcasting of trait objects.