Namespace for structured Rust type metadata.
Each type node includes code, the rendered Rust tokens for display or
diagnostics. Prefer matching on the structured fields when making semantic
decisions.
Summary
Functions
Returns true when type is impl Trait<Args...> matching the requested trait and args.
Returns true when type is a path whose final segment is name.
Returns true when type is a reference to a path whose final segment is name.
Returns the final path-like name for common type metadata nodes.
Functions
@spec impl_trait?(RustQ.Syn.type(), String.t(), [String.t()]) :: boolean()
Returns true when type is impl Trait<Args...> matching the requested trait and args.
@spec path?(RustQ.Syn.type(), String.t()) :: boolean()
Returns true when type is a path whose final segment is name.
@spec ref_to?(RustQ.Syn.type(), String.t()) :: boolean()
Returns true when type is a reference to a path whose final segment is name.
@spec type_name(RustQ.Syn.type()) :: String.t() | nil
Returns the final path-like name for common type metadata nodes.