Re-exportsยง
pub use attrs::Attrs;
Modulesยง
- docs ๐
- enums ๐
- idents ๐
- lifetimes ๐
- methods ๐
- modules ๐
- paths ๐
- structs ๐
- types ๐
Structsยง
- Parameters in a method that might be borrowed in the return type.
- A fieldless enum declaration in an FFI module.
- An identifier, analogous to
syn::Ident
andproc_macro2::Ident
. - A lifetime dependency graph used for tracking which lifetimes outlive, and are outlived by, other lifetimes.
- Collect all lifetimes that are either longer_or_shorter
- A method declared in the
impl
associated with an FFI struct. Includes both static and non-static methods, which can be distinguished by inspectingMethod::self_param
. - A named lifetime, e.g.
'a
. - A struct annotated with [
diplomat::opaque
] whose fields are not visible. Opaque structs cannot be passed by-value across the FFI boundary, so they must be boxed or passed as references. - A parameter taken by a
Method
, not includingself
. - A named type that is just a path, e.g.
std::borrow::Cow<'a, T>
. - The
self
parameter taken by aMethod
. - A struct declaration in an FFI module that is not opaque.
Enumsยง
- A type declared inside a Diplomat-annotated module.
- A lifetime, analogous to [
syn::Lifetime
]. - The type of markdown generated by
Docs::to_markdown()
- A symbol declared in a module, which can either be a pointer to another path, or a custom type defined directly inside that module
- A built-in Rust primitive scalar type.
- A local type reference, such as the type of a field, parameter, or return value. Unlike
CustomType
, which represents a type declaration,TypeName
s can compose types through references and boxing, and can also capture unresolved paths.