pub fn compile(defs: &ast::Defs, options: &codegen::CodegenOptions) -> Result<String> {
    let mut typeenv = sema::TypeEnv::from_ast(defs)?;
    let termenv = sema::TermEnv::from_ast(
        &mut typeenv,
        defs,
        /* expand_internal_extractors */ true,
    )?;
    let tries = trie::build_tries(&typeenv, &termenv);
    Ok(codegen::codegen(&typeenv, &termenv, &tries, options))
}
/// Compile the given AST definitions into Rust source code.
Compile the given AST definitions into Rust source code.
Compile the given AST definitions into Rust source code .
pub fn compile(defs: &ast::Defs, options: &codegen::CodegenOptions) -> Result<String> {
    let mut typeenv = sema::TypeEnv::from_ast(defs)?;
    let termenv = sema::TermEnv::from_ast(
        &mut typeenv,
        defs,
        /* expand_internal_extractors */ true,
    )?;
    let tries = trie::build_tries(&typeenv, &termenv);
    Ok(codegen::codegen(&typeenv, &termenv, &tries, options))
}
pub fn compile ( defs : & ast :: Defs , options : & codegen :: CodegenOptions ) -> Result < String > { let mut typeenv = sema :: TypeEnv :: from_ast ( defs ) ? ; let termenv = sema :: TermEnv :: from_ast ( & mut typeenv , defs , /* expand_internal_extractors */ true , ) ? ; let tries = trie :: build_tries ( & typeenv , & termenv ) ; Ok ( codegen :: codegen ( & typeenv , & termenv , & tries , options ) ) }
Compile the given AST definitions into Rust source code.
Compile the given AST definitions into Rust source code .
defs
&ast::Defs
options
&codegen::CodegenOptions
defs
&ast::Defs
options
&codegen::CodegenOptions