RustQ.Rust.AST.Function (rustq v0.9.0)

Copy Markdown View Source

RustQ AST node generated by RustQ.Rust.AST.NodeDSL.defnode/4.

Summary

Types

t()

@type t() :: %RustQ.Rust.AST.Function{
  args: [RustQ.Rust.AST.FunctionArg.t()],
  attrs: [RustQ.Rust.AST.Attribute.t()],
  body: [RustQ.Rust.AST.stmt()],
  lifetime: atom() | nil,
  name: atom(),
  returns: RustQ.Rust.AST.type() | String.t(),
  vis: RustQ.Rust.AST.vis()
}