Function try_as_dyn_mut

#[must_use]
pub const fn try_as_dyn_mut<'a, T: ?Sized + 'a, U: TryAsDynCompatible<'a> + ?Sized>(t: &mut T) -> Option<&mut U>

Returns Some(&mut U) if T can be coerced to the trait object type U. Otherwise, it returns None.

See documentation of [try_as_dyn] for details about the behaviour and limitations.