Expand description
A crate for representing and creating Rust type definitions as values, i. e. a subset of the Rust abstract syntax.
Structs
- An array type.
- A container of some type definition.
- The keys and associated values present in the attribute on a top-level type.
- Represents an
enum
definition. - A lifetime.
- Represents a named
struct
field. - A path segment, like
std
,collections
, andHashMap
instd::collections::HashMap
. - The name of a type (struct or enum) declared elsewhere.
- A slice type.
- Represents a
struct
definition. - The name of a type (struct or enum) declared elsewhere.
- Represents a named
struct
field. - A variant of an enum.
- The attributes that are present on an individual enum variant.
Enums
- The built-in types.
- A generic argument provided to a path segment.
- A generic parameter.
- Represents an item.
- A rename rule, signifying that something should be renamed to the given case.
- A list of fields. The fields are either all named or all unnamed.
- Represents a type use, e. g. in a struct definition, function definition, or type alias.
- The content of an enum variant.
- A visibility modifier for an item.
Traits
- Describes how to construct a type definition for a given type.