[−][src]Struct gluon_vm::vm::GlobalVmState
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]
&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]
&self,
name: Symbol,
alias: Alias<Symbol, ArcType>,
id: TypeId
) -> Result<ArcType>
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
impl Send for GlobalVmState
impl Sync for GlobalVmState
Blanket Implementations
impl<D, T> FromPtr for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Choices> CoproductSubsetter for Choices
[src]
type Remainder = Choices
fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<Source> Sculptor for Source
[src]
impl<T, U, I> LiftInto for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<T> Any for T where
T: Any,
[src]
T: Any,