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
Implementations on Foreign Types
impl<T> BorrowInterior<T> for Box<T>
[src]
impl<T> BorrowInterior<T> for Box<T>
Implementors
impl<T> BorrowInterior<T> for T type Anchor = StackAnchor<T>;
impl<'a, T: ?Sized> BorrowInterior<T> for RefMove<'a, T> type Anchor = IdentityAnchor<'a, T>;