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]
impl<T> Anchor<Box<T>, T> for BoxAnchor<T>
fn anchor_from(content: Box<T>) -> Self
[src]
fn anchor_from(content: Box<T>) -> Self
Wraps the ownership by this anchor.
ⓘImportant traits for RefMove<'a, I>fn borrow_move<'a>(&'a mut self) -> RefMove<'a, T>
[src]
ⓘImportant traits for RefMove<'a, I>
fn borrow_move<'a>(&'a mut self) -> RefMove<'a, T>
Turns a mutable reference to this anchor into a by-move reference to its content. Read more
impl<T> Drop for BoxAnchor<T>
[src]
impl<T> Drop for BoxAnchor<T>
impl<T: Debug> Debug for BoxAnchor<T>
[src]
impl<T: Debug> Debug for BoxAnchor<T>