[−][src]Struct gluon_vm::core::interpreter::Compiler
Methods
impl<'a, 'e> Compiler<'a, 'e>
[src]
pub fn new(
allocator: &'e Allocator<'e>,
globals: &'a dyn Fn(&Symbol) -> Option<GlobalBinding>
) -> Compiler<'a, 'e>
[src]
allocator: &'e Allocator<'e>,
globals: &'a dyn Fn(&Symbol) -> Option<GlobalBinding>
) -> Compiler<'a, 'e>
pub fn optimizer_info(self, allocator: &'e Arc<Allocator<'e>>) -> OptimizerInfo
[src]
pub fn costs(self, costs: Costs) -> Self
[src]
pub fn pure_symbols(self, pure_symbols: &'a PurityMap) -> Self
[src]
pub fn compile_expr(&mut self, expr: CExpr<'e>) -> Result<CExpr<'e>>
[src]
Compiles an expression to a zero argument function which can be directly fed to the interpreter
Trait Implementations
impl<'a, 'e> TypeEnv for Compiler<'a, 'e>
[src]
type Type = ArcType
fn find_type(&self, _id: &SymbolRef) -> Option<ArcType>
[src]
fn find_type_info(&self, id: &SymbolRef) -> Option<Alias<Symbol, ArcType>>
[src]
impl<'a, 'e> KindEnv for Compiler<'a, 'e>
[src]
Auto Trait Implementations
impl<'a, 'e> !Send for Compiler<'a, 'e>
impl<'a, 'e> !Sync for Compiler<'a, 'e>
impl<'a, 'e> Unpin for Compiler<'a, 'e>
impl<'a, 'e> !UnwindSafe for Compiler<'a, 'e>
impl<'a, 'e> !RefUnwindSafe for Compiler<'a, 'e>
Blanket Implementations
impl<D, T> FromPtr<D> for T
[src]
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,