pub trait CoerceTo<T: ?Sized> {
// Required methods
fn coerce_rc_to(self: Rc<Self>) -> Rc<T>;
fn coerce_box_to(self: Box<Self>) -> Box<T>;
fn coerce_ref_to(&self) -> &T;
fn coerce_mut_to(&mut self) -> &mut T;
}
Expand description
Stable workaround for CoerceUnsized