Trait unbox_box::BoxExt [−][src]
pub trait BoxExt<T: ?Sized>: Deref<Target = T> + DerefMut<Target = T> { fn unbox_ref(&self) -> &T { ... } fn unbox_mut(&mut self) -> &mut T { ... } }
Extends Box
with the .unbox_ref()
and .unbox_mut()
methods.
Provided methods
fn unbox_ref(&self) -> &T
[src]
Returns a reference to the data stored in the Box
element.
fn unbox_mut(&mut self) -> &mut T
[src]
Returns a mutable reference to the data stored in the Box
element.