pub fn cast_mut<'a, T: 'static>(
    a: &'a mut (dyn RefArg + 'static)
) -> Option<&'a mut T>
Expand description

Cast a RefArg as a specific type (shortcut for any_mut + downcast_mut)

See the argument guide’s reference section for which types you can cast to.

Panic

Will panic if the interior cannot be made mutable, e g, if encapsulated inside a Rc with a reference count > 1.