Struct gluon_vm::api::record::Record
[−]
[src]
pub struct Record<T> { pub fields: T, }
Fields
fields: T
Methods
impl<FA, A, FB, B> Record<HList<(FA, A), HList<(FB, B), ()>>>
[src]
Trait Implementations
impl<A: VmType, F: Field, T: FieldTypes> VmType for Record<HList<(F, A), T>> where A::Type: Sized
[src]
type Type = Record<((&'static str, A::Type),)>
A version of Self
which implements Any
allowing a TypeId
to be retrieved
fn make_type(vm: &Thread) -> ArcType
Creates an gluon type which maps to Self
in rust
fn extra_args() -> VmIndex
How many extra arguments a function returning this type requires. Used for abstract types which when used in return position should act like they still need more arguments before they are called Read more
impl<'vm, A, F, T> Pushable<'vm> for Record<HList<(F, A), T>> where A: Pushable<'vm>,
F: Field,
T: PushableFieldList<'vm>
[src]
F: Field,
T: PushableFieldList<'vm>
fn push(self, thread: &'vm Thread, context: &mut Context) -> Result<()>
Pushes self
to stack
. If the call is successful a single element should have been added to the stack and Ok(())
should be returned. If the call is unsuccessful Status:Error
should be returned and the stack should be left intact Read more
impl<'vm, A, F, T> Getable<'vm> for Record<HList<(F, A), T>> where A: Getable<'vm> + VmType,
F: Field,
T: GetableFieldList<'vm>
[src]
F: Field,
T: GetableFieldList<'vm>
fn from_value(vm: &'vm Thread, value: Variants) -> Option<Self>
unsafe fn from_value_unsafe(vm: &'vm Thread, value: Variants) -> Option<Self>
unsafe version of from_value which allows references to the internal of GcPtr's to be extracted if value
is rooted Read more