dyn_cast_box

Function dyn_cast_box 

Source
pub fn dyn_cast_box<T: SupportsInterfaces + ?Sized, DynInterface, A: Allocator>(
    x: Box<T, A>,
) -> Option<Box<DynInterface, A>>
where DynInterface: Pointee<Metadata = DynMetadata<DynInterface>> + ?Sized + 'static,
Expand description

Runtime-checking safe cast for Boxed objects.