pub trait BoxExt<T: ?Sized>: Deref<Target = T> + DerefMut<Target = T> {
// Provided methods
fn unbox_ref(&self) -> &T { ... }
fn unbox_mut(&mut self) -> &mut T { ... }
}
Expand description
Extends Box
with the .unbox_ref()
and .unbox_mut()
methods.