[−][src]Struct gluon_vm::compiler::Compiler
Methods
impl<'a> Compiler<'a>
[src]
pub fn new(
globals: &'a (dyn CompilerEnv<Type = ArcType> + 'a),
vm: &'a GlobalVmState,
symbols: SymbolModule<'a>,
source: &'a FileMap,
source_name: String,
emit_debug_info: bool
) -> Compiler<'a>
[src]
globals: &'a (dyn CompilerEnv<Type = ArcType> + 'a),
vm: &'a GlobalVmState,
symbols: SymbolModule<'a>,
source: &'a FileMap,
source_name: String,
emit_debug_info: bool
) -> Compiler<'a>
pub fn compile_expr(&mut self, expr: CExpr) -> Result<CompiledModule>
[src]
Compiles an expression to a zero argument function which can be directly fed to the interpreter
Trait Implementations
impl<'a> TypeEnv for Compiler<'a>
[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> KindEnv for Compiler<'a>
[src]
Auto Trait Implementations
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 = !
🔬 This is a nightly-only experimental API. (
try_from
)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> 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
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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,