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
fn anchor_from(content: T) -> Self
Wraps the ownership by this anchor.
ⓘImportant traits for RefMove<'a, I>
fn borrow_move<'a>(&'a mut self) -> RefMove<'a, U>
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
impl<T> Anchor<T, T> for StackAnchor<T>
impl<T> Anchor<Box<T>, T> for BoxAnchor<T>
impl<'a, T: ?Sized + 'a> Anchor<RefMove<'a, T>, T> for IdentityAnchor<'a, T>