RustQ.Rust.AST (rustq v0.8.3)

Copy Markdown View Source

Small Rust AST/IR used by macro frontends before final RustQ validation.

This is intentionally much smaller than Rust's full grammar. It captures the Rust-shaped nodes that RustQ.Meta.defrust/2 can produce from valid Elixir AST, then renders them only at the final fragment-validation boundary.

Summary

Types

Rust expression nodes supported by RustQ's compact AST.

Rust item nodes supported by RustQ's compact AST.

Rust pattern nodes supported by RustQ's compact AST.

Rust statement nodes supported by RustQ's compact AST.

Rust type nodes supported by RustQ's compact AST.

Types

expr()

Rust expression nodes supported by RustQ's compact AST.

item()

Rust item nodes supported by RustQ's compact AST.

pat()

Rust pattern nodes supported by RustQ's compact AST.

stmt()

Rust statement nodes supported by RustQ's compact AST.

type()

Rust type nodes supported by RustQ's compact AST.

vis()

@type vis() :: :pub | :crate | nil

Functions

expr_node?(term)

pat_node?(term)

type_node?(term)