Struct thin::ThinBox
[−]
[src]
pub struct ThinBox<D: ?Sized> where
D: DynSized, { /* fields omitted */ }
A thin version of Box
.
Methods
impl<D: ?Sized> ThinBox<D> where
D: DynSized,
[src]
D: DynSized,
fn new<S: Unsize<D>>(value: S) -> ThinBox<D>
[src]
fn free(self)
[src]
performs a shallow drop, freeing the memory owned by self
without
dropping the contained value
fn from_box(bx: Box<ThinBackend<D, D>>) -> ThinBox<D>
[src]
fn into_box(self) -> Box<ThinBackend<D, D>>
[src]
fn into_boxed_value(self) -> Box<D>
[src]
impl<D: ?Sized> ThinBox<D> where
D: DynSized,
[src]
D: DynSized,
unsafe fn copy_into_new(src: &D) -> ThinBox<D>
[src]
Trait Implementations
impl<D: ?Sized> Drop for ThinBox<D> where
D: DynSized,
[src]
D: DynSized,
impl<T: ?Sized> Deref for ThinBox<T> where
T: DynSized,
[src]
T: DynSized,
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.
impl<T: ?Sized> DerefMut for ThinBox<T> where
T: DynSized,
[src]
T: DynSized,
impl<T: ?Sized> AsRef<T> for ThinBox<T> where
T: DynSized,
[src]
T: DynSized,
impl<T: ?Sized> AsMut<T> for ThinBox<T> where
T: DynSized,
[src]
T: DynSized,
impl<F: ?Sized, Args> FnOnce<Args> for ThinBox<F> where
F: FnMove<Args> + DynSized,
[src]
F: FnMove<Args> + DynSized,