[−][src]Function traitcast::cast_mut
pub fn cast_mut<'a, From: ?Sized, To: ?Sized>(
x: &'a mut From
) -> Option<&'a mut To> where
From: TraitcastFrom,
To: 'static,
Tries to cast the given mutable reference to a dynamic trait object. This
will always return None if the implementation of the target trait, for the
concrete type of x, has not been registered via traitcast!
.