Module rustc_trans::trans::closureExperimental [-]  [+] [src]

Reexports

pub use self::ClosureKind::*;

Structs

ClosureEnv
ClosureResult
EnvValue

Enums

ClosureKind

Functions

get_or_create_declaration_if_unboxed_closure

Returns the LLVM function declaration for an unboxed closure, creating it if necessary. If the ID does not correspond to a closure ID, returns None.

get_wrapper_for_bare_fn
make_closure_from_bare_fn
mk_closure_tys
store_environment
trans_expr_fn

* * Translates the body of a closure expression. * * - store * - decl * - body * - id: The id of the closure expression. * - cap_clause: information about captured variables, if any. * - dest: where to write the closure value, which must be a (fn ptr, env) pair

trans_unboxed_closure