RustQ.Rust.Function (rustq v0.1.2)

Copy Markdown View Source

Represents a Rust function declaration built with RustQ.Rust.fn/2.

Summary

Types

t()

@type t() :: %RustQ.Rust.Function{
  args: [term()],
  attrs: [term()],
  body: iodata(),
  generics: [term()],
  name: atom() | String.t(),
  returns: term(),
  vis: atom() | String.t() | nil,
  where: [term()]
}