Struct gluon_vm::vm::GlobalVmState [−][src]
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]
impl GlobalVmState
pub fn get_event_loop(&self) -> Option<Remote>
[src]
pub fn get_event_loop(&self) -> Option<Remote>
pub fn type_cache(&self) -> &TypeCache<Symbol, ArcType>
[src]
pub fn type_cache(&self) -> &TypeCache<Symbol, ArcType>
pub fn new_global_thunk(&self, f: CompiledModule) -> Result<GcPtr<ClosureData>>
[src]
pub fn new_global_thunk(&self, f: CompiledModule) -> Result<GcPtr<ClosureData>>
pub fn get_type<T: ?Sized + Any>(&self) -> Option<ArcType>
[src]
pub fn get_type<T: ?Sized + Any>(&self) -> Option<ArcType>
pub fn global_exists(&self, name: &str) -> bool
[src]
pub fn global_exists(&self, name: &str) -> bool
Checks if a global exists called name
pub fn get_generic(&self, name: &str) -> ArcType
[src]
pub fn get_generic(&self, name: &str) -> ArcType
pub fn register_type<T: ?Sized + Any>(
&self,
name: &str,
args: &[&str]
) -> Result<ArcType>
[src]
pub fn register_type<T: ?Sized + Any>(
&self,
name: &str,
args: &[&str]
) -> Result<ArcType>
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 register_type_as(
&self,
name: Symbol,
alias: Alias<Symbol, ArcType>,
id: TypeId
) -> Result<ArcType>
pub fn get_macros(&self) -> &MacroEnv
[src]
pub fn get_macros(&self) -> &MacroEnv
pub fn intern(&self, s: &str) -> Result<InternedStr>
[src]
pub fn intern(&self, s: &str) -> Result<InternedStr>
pub fn get_env<'b>(&'b self) -> RwLockReadGuard<'b, VmEnv>
[src]
pub fn get_env<'b>(&'b self) -> RwLockReadGuard<'b, VmEnv>
Returns a borrowed structure which implements CompilerEnv
Trait Implementations
impl Traverseable for GlobalVmState
[src]
impl Traverseable for GlobalVmState
Auto Trait Implementations
impl Send for GlobalVmState
impl Send for GlobalVmState
impl Sync for GlobalVmState
impl Sync for GlobalVmState