[][src]Struct evmc_vm::EvmcContainer

pub struct EvmcContainer<T> where
    T: EvmcVm + Sized
{ /* fields omitted */ }

Container struct for EVMC instances and user-defined data.

Methods

impl<T> EvmcContainer<T> where
    T: EvmcVm + Sized
[src]

pub fn new(_instance: evmc_vm) -> Box<Self>[src]

Basic constructor.

pub unsafe fn from_ffi_pointer(instance: *mut evmc_vm) -> Box<Self>[src]

Take ownership of the given pointer and return a box.

pub unsafe fn into_ffi_pointer(boxed: Box<Self>) -> *mut evmc_vm[src]

Convert boxed self into an FFI pointer, surrendering ownership of the heap data.

Trait Implementations

impl<T> Deref for EvmcContainer<T> where
    T: EvmcVm
[src]

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<T> !Send for EvmcContainer<T>

impl<T> !Sync for EvmcContainer<T>

impl<T> Unpin for EvmcContainer<T> where
    T: Unpin

impl<T> UnwindSafe for EvmcContainer<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for EvmcContainer<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]