[][src]Struct gluon_vm::vm::GlobalVmState

pub struct GlobalVmState {
    pub gc: Mutex<Gc>,
    pub generation_0_threads: RwLock<Vec<GcPtr<Thread>>>,
    // some fields omitted
}

Fields

gc: Mutex<Gc>generation_0_threads: RwLock<Vec<GcPtr<Thread>>>

Methods

impl GlobalVmState[src]

pub fn new() -> Self[src]

pub fn type_cache(&self) -> &TypeCache<Symbol, ArcType>[src]

pub fn new_global_thunk(&self, f: CompiledModule) -> Result<GcPtr<ClosureData>>[src]

pub fn get_type<T: ?Sized + Any>(&self) -> Option<ArcType>[src]

pub fn global_exists(&self, name: &str) -> bool[src]

Checks if a global exists called name

pub fn get_generic(&self, name: &str) -> ArcType[src]

pub fn register_type<T: ?Sized + Any>(
    &self,
    name: &str,
    args: &[&str]
) -> Result<ArcType>
[src]

Registers a new type called name

pub fn register_type_as(
    &self,
    name: Symbol,
    alias: Alias<Symbol, ArcType>,
    id: TypeId
) -> Result<ArcType>
[src]

pub fn get_macros(&self) -> &MacroEnv[src]

pub fn intern(&self, s: &str) -> Result<InternedStr>[src]

pub fn get_env<'b>(&'b self) -> RwLockReadGuard<'b, VmEnv>[src]

Returns a borrowed structure which implements CompilerEnv

pub fn get_debug_level(&self) -> DebugLevel[src]

pub fn set_debug_level(&self, debug_level: DebugLevel)[src]

Trait Implementations

impl Traverseable for GlobalVmState[src]

Auto Trait Implementations

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]