[][src]Struct wasmer_clif_fork_wasm::VisibleTranslationState

pub struct VisibleTranslationState<'a> { /* fields omitted */ }

VisibleTranslationState wraps a TranslationState with an interface appropriate for users outside this cranelift-wasm.

VisibleTranslationState is currently very minimal (only exposing reachability information), but is anticipated to grow in the future, with functions to inspect or modify the wasm operand stack for example.

Methods

impl<'a> VisibleTranslationState<'a>[src]

pub fn new(state: &'a TranslationState) -> Self[src]

Build a VisibleTranslationState from an existing TranslationState

pub fn reachable(&self) -> bool[src]

True if the current translation state expresses reachable code, false if it is unreachable

Auto Trait Implementations

Blanket Implementations

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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]