Struct gluon_vm::api::PushAsRef
[−]
[src]
pub struct PushAsRef<T, R>(_, _);
Newtype which can be used to push types implementating AsRef
Methods
impl<T, R> PushAsRef<T, R>
[src]
Trait Implementations
impl<T, R> VmType for PushAsRef<T, R> where T: AsRef<R>,
R: 'static,
&'static R: VmType
[src]
R: 'static,
&'static R: VmType
type Type = &'static R::Type
A version of Self
which implements Any
allowing a TypeId
to be retrieved
fn make_type(thread: &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, R> Pushable<'vm> for PushAsRef<T, R> where T: AsRef<R>,
&'a R: Pushable<'vm>
[src]
&'a R: Pushable<'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