Struct gluon_vm::api::Generic [−][src]
pub struct Generic<T>(_, _);
Trait Implementations
impl<T: PartialEq> PartialEq for Generic<T>
[src]
impl<T: PartialEq> PartialEq for Generic<T>
fn eq(&self, other: &Generic<T>) -> bool
[src]
fn eq(&self, other: &Generic<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Generic<T>) -> bool
[src]
fn ne(&self, other: &Generic<T>) -> bool
This method tests for !=
.
impl<T> Debug for Generic<T>
[src]
impl<T> Debug for Generic<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> From<Value> for Generic<T>
[src]
impl<T> From<Value> for Generic<T>
impl<T: VmType> VmType for Generic<T>
[src]
impl<T: VmType> VmType for Generic<T>
type Type = T::Type
A version of Self
which implements Any
allowing a TypeId
to be retrieved
fn make_type(vm: &Thread) -> ArcType
[src]
fn make_type(vm: &Thread) -> ArcType
Creates an gluon type which maps to Self
in rust
fn extra_args() -> VmIndex
[src]
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
fn make_forall_type(vm: &Thread) -> ArcType
[src]
fn make_forall_type(vm: &Thread) -> ArcType
impl<'vm, T: VmType> Pushable<'vm> for Generic<T>
[src]
impl<'vm, T: VmType> Pushable<'vm> for Generic<T>
fn push(self, _: &'vm Thread, context: &mut Context) -> Result<()>
[src]
fn push(self, _: &'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
fn status_push(self, vm: &'vm Thread, context: &mut Context) -> Status where
Self: Sized,
[src]
fn status_push(self, vm: &'vm Thread, context: &mut Context) -> Status where
Self: Sized,
unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
Self: Sized,
[src]
unsafe fn marshal_unrooted(self, vm: &'vm Thread) -> Result<Value> where
Self: Sized,
fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
Self: Sized,
T: VmRoot<'vm>,
[src]
fn marshal<T>(self, vm: &'vm Thread) -> Result<RootedValue<T>> where
Self: Sized,
T: VmRoot<'vm>,
impl<'vm, T> Getable<'vm> for Generic<T>
[src]
impl<'vm, T> Getable<'vm> for Generic<T>
fn from_value(_: &'vm Thread, value: Variants) -> Generic<T>
[src]
fn from_value(_: &'vm Thread, value: Variants) -> Generic<T>
unsafe fn from_value_unsafe(vm: &'vm Thread, value: Variants) -> Self
[src]
unsafe fn from_value_unsafe(vm: &'vm Thread, value: Variants) -> Self
unsafe version of from_value which allows references to the internal of GcPtr's to be extracted if value
is rooted Read more
impl<T> Traverseable for Generic<T>
[src]
impl<T> Traverseable for Generic<T>