Trait refmove::anchor::Anchor[][src]

pub trait Anchor<T, U: ?Sized> {
    fn anchor_from(content: T) -> Self;
fn borrow_move<'a>(&'a mut self) -> RefMove<'a, U>; }

Anchors

Anchors ensure validity of memory regions at caller side.

Required Methods

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.

Panics

This method panics when called more than once.

Implementors