[−][src]Struct gluon_vm::vm::GlobalVmState
Fields
gc: Mutex<Gc>
generation_0_threads: RwLock<Slab<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,
thread: &Thread,
f: CompiledModule
) -> Result<OpaqueValue<RootedThread, GcPtr<ClosureData>>>
[src]
&self,
thread: &Thread,
f: CompiledModule
) -> Result<OpaqueValue<RootedThread, GcPtr<ClosureData>>>
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 cache_alias(&self, alias: Alias<Symbol, ArcType>) -> ArcType
[src]
pub fn get_macros(&self) -> &MacroEnv
[src]
pub fn intern(&self, s: &str) -> Result<InternedStr>
[src]
pub fn get_env<'t>(&'t self, thread: &'t Thread) -> VmEnvInstance<'t>
[src]
Returns a borrowed structure which implements CompilerEnv
pub fn get_capability<'t, T>(&'t self, thread: &'t Thread) -> Option<T> where
T: Any,
[src]
T: Any,
pub fn get_debug_level(&self) -> DebugLevel
[src]
pub fn set_debug_level(&self, debug_level: DebugLevel)
[src]
Trait Implementations
impl Trace for GlobalVmState
[src]
Auto Trait Implementations
impl Send for GlobalVmState
impl Sync for GlobalVmState
impl Unpin for GlobalVmState
impl UnwindSafe for GlobalVmState
impl RefUnwindSafe for GlobalVmState
Blanket Implementations
impl<D, T> FromPtr<D> for T
[src]
impl<T> DowncastArc for T where
T: Downcast + Send + Sync,
[src]
T: Downcast + Send + Sync,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Choices> CoproductSubsetter<CNil, HNil> 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<HNil, HNil> for Source
[src]
impl<T, U, I> LiftInto<U, I> for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,