diplomat_core::ast

Module attrs

source
Expand description

As part of the macro expansion and code generation process, Diplomat generates a simplified version of the Rust AST that captures special types such as opaque structs, Box, and Result with utilities for handling such types. This module contains utilities for dealing with Rust attributes

Structsยง

  • The list of attributes on a type. All attributes except attrs (HIR attrs) are potentially read by the diplomat macro and the AST backends, anything that is not should be added as an HIR attribute ([crate::hir::Attrs]).
  • A #[diplomat::attr(...)] attribute
  • A pattern for use in rename attributes, like #[diplomat::abi_rename]
  • RenamePattern ๐Ÿ”’

Enumsยง

Functionsยง