Trait refmove::BorrowInterior[][src]

pub trait BorrowInterior<Borrowed: ?Sized>: BorrowMut<Borrowed> + Sized {
    type Anchor: Anchor<Self, Borrowed>;
}

Anchored by-move borrowing.

This is different from BorrowMove in that the user has to provide an anchored self when invoking borrow_move.

This extra step is required to achieve safe by-move borrowing. The point is that it's caller's responsibility to ensure the space is valid until 'a expires.

Associated Types

The anchor type we use for this pair of borrowing.

Implementations on Foreign Types

impl<T> BorrowInterior<T> for Box<T>
[src]

Implementors