Struct refmove::anchor::BoxAnchor[][src]

pub struct BoxAnchor<T> { /* fields omitted */ }

Anchor to obtain by-move reference to the heap.

The structure is similar to Box<Option<T>> but is_some flag is out of Box so that we can reuse Box<T> pointer.

Sizedness

This type currently imposes the T: Sized bound. T: ?Sized is just blocked by #53033 in the compiler.

Trait Implementations

impl<T> Anchor<Box<T>, T> for BoxAnchor<T>
[src]

Wraps the ownership by this anchor.

Important traits for RefMove<'a, I>

Turns a mutable reference to this anchor into a by-move reference to its content. Read more

impl<T> Drop for BoxAnchor<T>
[src]

Executes the destructor for this type. Read more

impl<T: Debug> Debug for BoxAnchor<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for BoxAnchor<T> where
    T: Send

impl<T> Sync for BoxAnchor<T> where
    T: Sync