Enum gluon_vm::api::IO
[−]
[src]
pub enum IO<T> { Value(T), Exception(String), }
Type representing gluon's IO type
Variants
Value(T)
Exception(String)
Trait Implementations
impl<T: Debug> Debug for IO<T>
[src]
impl<T: PartialEq> PartialEq for IO<T>
[src]
fn eq(&self, __arg_0: &IO<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IO<T>) -> bool
This method tests for !=
.
impl<T> VmType for IO<T> where T: VmType, T::Type: Sized
[src]
type Type = IO<T::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, T: Getable<'vm>> Getable<'vm> for IO<T>
[src]
fn from_value(vm: &'vm Thread, value: Variants) -> Option<IO<T>>
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
impl<'vm, T: Pushable<'vm>> Pushable<'vm> for IO<T>
[src]
fn push(self, vm: &'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