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]

type Value = T

The type of the value allocated.

fn size(&self) -> usize

Returns how many bytes need to be allocted for this DataDef

fn initialize(self, result: WriteOnly<T>) -> &mut T

Consumes self to initialize the allocated value. Returns the initialized pointer. Read more

impl<T> Traverseable for Move<T> where T: Traverseable
[src]

fn traverse(&self, gc: &mut Gc)