RustQ.Rust.Fragment (rustq v0.11.1)

Copy Markdown View Source

Explicit Rust source fragment used at template splice boundaries.

Prefer RustQ.Rust.AST nodes for generated structure. A fragment is the deliberate escape hatch for syntax RustQ does not yet model structurally.

Summary

Types

kind()

@type kind() ::
  :raw | :item | :impl_item | :field | :stmt | :arg | :arm | :expr | :type

t()

@type t() :: %RustQ.Rust.Fragment{kind: kind(), source: iodata()}