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]

[src]

[src]

performs a shallow drop, freeing the memory owned by self without dropping the contained value

[src]

[src]

[src]

impl<D: ?Sized> ThinBox<D> where
    D: DynSized
[src]

[src]

Trait Implementations

impl<D: ?Sized> Drop for ThinBox<D> where
    D: DynSized
[src]

[src]

Executes the destructor for this type. Read more

impl<T: ?Sized> Deref for ThinBox<T> where
    T: DynSized
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T: ?Sized> DerefMut for ThinBox<T> where
    T: DynSized
[src]

[src]

Mutably dereferences the value.

impl<T: ?Sized> AsRef<T> for ThinBox<T> where
    T: DynSized
[src]

[src]

Performs the conversion.

impl<T: ?Sized> AsMut<T> for ThinBox<T> where
    T: DynSized
[src]

[src]

Performs the conversion.

impl<F: ?Sized, Args> FnOnce<Args> for ThinBox<F> where
    F: FnMove<Args> + DynSized
[src]

The returned type after the call operator is used.

[src]

🔬 This is a nightly-only experimental API. (fn_traits)

Performs the call operation.