[−][src]Trait gluon_vm::gc::DataDef
A definition of some data which may be allocated by the garbage collector.
Associated Types
Loading content...Required methods
fn size(&self) -> usize
Returns how many bytes need to be allocted for this DataDef
fn initialize<'w>(self, ptr: WriteOnly<'w, Self::Value>) -> &'w mut Self::Value
Consumes self
to initialize the allocated value.
Returns the initialized pointer.
Provided methods
fn fields(&self) -> Option<&[InternedStr]>
fn tag(&self) -> Option<&InternedStr>
Implementations on Foreign Types
impl<'a> DataDef for &'a [u8]
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl DataDef for Vec<u8>
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl<'a> DataDef for &'a [VmInt]
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl DataDef for Vec<VmInt>
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl<'a> DataDef for &'a [f64]
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl DataDef for Vec<f64>
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl<'a> DataDef for &'a [GcPtr<ValueStr>]
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl DataDef for Vec<GcPtr<ValueStr>>
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl<'a> DataDef for &'a [GcPtr<ValueArray>]
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl DataDef for Vec<GcPtr<ValueArray>>
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl<'a> DataDef for &'a [Value]
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl DataDef for Vec<Value>
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl<'a> DataDef for &'a [GcPtr<Box<dyn Userdata>>]
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl DataDef for Vec<GcPtr<Box<dyn Userdata>>>
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl<'a> DataDef for &'a [GcPtr<Thread>]
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl DataDef for Vec<GcPtr<Thread>>
[src]
type Value = ValueArray
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueArray>) -> &'w mut ValueArray
[src]
impl<'a> DataDef for &'a str
[src]
type Value = ValueStr
fn size(&self) -> usize
[src]
fn initialize<'w>(self, result: WriteOnly<'w, ValueStr>) -> &'w mut ValueStr
[src]
Implementors
impl<'a, T> DataDef for Borrow<'a, T> where
T: DataDef,
T::Value: Sized,
[src]
T: DataDef,
T::Value: Sized,
type Value = T::Value
fn size(&self) -> usize
[src]
fn initialize(self, result: WriteOnly<'_, Self::Value>) -> &mut Self::Value
[src]
impl<T> DataDef for Move<T> where
T: Trace,
[src]
T: Trace,