Function type_equalities::coerce_mut [−][src]
Expand description
Coerce a value of type &mut T
to a value of type &mut U
, given evidence that T == U
.
Examples
assert_eq!(*coerce_ref(&mut 42, refl()), 42);
Coerce a value of type &mut T
to a value of type &mut U
, given evidence that T == U
.
assert_eq!(*coerce_ref(&mut 42, refl()), 42);