RustQ.Rustler.Nif (rustq v0.8.0)

Copy Markdown View Source

Generates Rustler NIF exports, NifStruct declarations, and raw NIF_TERM builders.

Summary

Types

spec()

@type spec() :: {atom() | String.t(), keyword()}

Functions

export(name, opts)

@spec export(
  atom() | String.t(),
  keyword()
) :: RustQ.Rust.Function.t()

exports(specs)

@spec exports([spec()]) :: [RustQ.Rust.Function.t()]

struct(name, module, opts \\ [])

@spec struct(atom() | String.t(), module() | String.t(), keyword()) ::
  RustQ.Rust.Fragment.t()

term_builders(opts \\ [])

@spec term_builders(keyword()) :: [RustQ.Rust.Fragment.t()]