Unsafe v1.0.1 Unsafe.Compiler View Source

Compilation module for unsafe function definitions.

This module shouldn’t be interacted with by the developer, it’s for internal use only. To generate unsafe definitions, you should go via the Unsafe.Generator module and the included hooks.

Link to this section Summary

Functions

Compiles a set of unsafe function definitions

Link to this section Types

Link to this type arities() View Source
arities() :: arity() | [arity()]
Link to this type binding() View Source
binding() :: {atom(), arities()} | {atom(), arities(), handler()}
Link to this type handler() View Source
handler() :: atom() | {atom(), atom()}

Link to this section Functions

Link to this function compile!(env, bindings, options) View Source
compile!(Macro.Env.t(), binding() | [binding()], Keyword.t()) :: Macro.t()

Compiles a set of unsafe function definitions.

Due to the bindings being pulled from module attributes, this function will accept nested lists of binding definitions and unpack as needed.