[][src]Struct gluon_vm::vm::VmEnv

pub struct VmEnv {
    pub type_infos: TypeInfos,
    pub globals: FnvMap<StdString, Global>,
}

A borrowed structure which implements CompilerEnv, TypeEnv and KindEnv allowing the typechecker and compiler to lookup things in the virtual machine.

Fields

type_infos: TypeInfosglobals: FnvMap<StdString, Global>

Methods

impl VmEnv[src]

pub fn find_type_info(&self, name: &str) -> Result<Cow<Alias<Symbol, ArcType>>>[src]

pub fn get_binding(&self, name: &str) -> Result<(Variants, Cow<ArcType>)>[src]

pub fn get_metadata(&self, name_str: &str) -> Result<&Arc<Metadata>>[src]

Trait Implementations

impl CompilerEnv for VmEnv[src]

impl Debug for VmEnv[src]

impl TypeEnv for VmEnv[src]

type Type = ArcType

impl PrimitiveEnv for VmEnv[src]

impl KindEnv for VmEnv[src]

impl MetadataEnv for VmEnv[src]

Auto Trait Implementations

impl Send for VmEnv

impl Sync for VmEnv

Blanket Implementations

impl<D, T> FromPtr for T[src]

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<Choices> CoproductSubsetter for Choices[src]

type Remainder = Choices

impl<Source> Sculptor for Source[src]

type Remainder = Source

impl<T, U, I> LiftInto for T where
    U: LiftFrom<T, I>, 
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> TypecheckEnv for T where
    T: PrimitiveEnv + MetadataEnv
[src]