Debian Codegraph @

third_party/rust/diplomat_core/src/ast/mod.rs

raw
1 /// As part of the macro expansion and code generation process, Diplomat
2 /// generates a simplified version of the Rust AST that captures special
3 /// types such as opaque structs, [`Box`], and [`Result`] with utilities
4 /// for handling such types.
5 pub mod attrs;
6 pub(crate) use attrs::AttrInheritContext;
7 pub use attrs::Attrs;
8
9 mod methods;
10 pub use methods::{BorrowedParams, Method, Param, SelfParam};
11
12 mod modules;
13 pub use modules::{File, Module};
14
15 mod structs;
16 pub use structs::{OpaqueStruct, Struct};
17
18 mod enums;
19 pub use enums::Enum;
20
21 mod types;
22 pub use types::{
23 CustomType, LifetimeOrigin, ModSymbol, Mutability, PathType, PrimitiveType, StringEncoding,
24 TypeName,
25 };
26
27 pub(crate) mod lifetimes;
28 pub use lifetimes::{Lifetime, LifetimeEnv, LifetimeTransitivity, NamedLifetime};
29
30 mod paths;
31 pub use paths::Path;
32
33 mod idents;
34 pub use idents::Ident;
35
36 mod docs;
37 pub use docs::{DocType, Docs, DocsUrlGenerator, MarkdownStyle, RustLink, RustLinkDisplay};