pub struct Move<T>(pub T);
Expand description
DataDef
that moves its value directly into the pointer
useful for sized types
Tuple Fields
0: T
Trait Implementations
sourceimpl<T> DataDef for Move<T>
impl<T> DataDef for Move<T>
type Value = T
type Value = T
The type of the value allocated.
sourcefn initialize(self, result: WriteOnly<'_, T>) -> &mut T
fn initialize(self, result: WriteOnly<'_, T>) -> &mut T
Consumes
self
to initialize the allocated value.
Returns the initialized pointer. Read morefn fields(&self) -> Option<&[InternedStr]>
fn tag(&self) -> Option<InternedStr>
sourceimpl<T> Traverseable for Move<T>where
T: Traverseable,
impl<T> Traverseable for Move<T>where
T: Traverseable,
Auto Trait Implementations
impl<T> RefUnwindSafe for Move<T>where
T: RefUnwindSafe,
impl<T> Send for Move<T>where
T: Send,
impl<T> Sync for Move<T>where
T: Sync,
impl<T> Unpin for Move<T>where
T: Unpin,
impl<T> UnwindSafe for Move<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more