dyn_cast_mut

Function dyn_cast_mut 

Source
pub fn dyn_cast_mut<T: SupportsInterfaces + ?Sized, DynInterface>(
    x: &mut T,
) -> Option<&mut DynInterface>
where DynInterface: Pointee<Metadata = DynMetadata<DynInterface>> + ?Sized + 'static,
Expand description

Runtime-checking safe cast for unique references.