Struct gluon_vm::gc::Move [−][src]
pub struct Move<T>(pub T);
DataDef
that moves its value directly into the pointer
useful for sized types
Trait Implementations
impl<T> DataDef for Move<T>
[src]
impl<T> DataDef for Move<T>
type Value = T
The type of the value allocated.
fn size(&self) -> usize
[src]
fn size(&self) -> usize
Returns how many bytes need to be allocted for this DataDef
fn initialize(self, result: WriteOnly<T>) -> &mut T
[src]
fn initialize(self, result: WriteOnly<T>) -> &mut T
Consumes self
to initialize the allocated value. Returns the initialized pointer. Read more
fn fields(&self) -> Option<&[InternedStr]>
[src]
fn fields(&self) -> Option<&[InternedStr]>
impl<T> Traverseable for Move<T> where
T: Traverseable,
[src]
impl<T> Traverseable for Move<T> where
T: Traverseable,