Expand description
A crate for representing and creating Rust type definitions as values, i. e. a subset of the Rust abstract syntax.
Structs§
- Array
Type - An array type.
- Container
- A container of some type definition.
- Container
Attributes - The keys and associated values present in the attribute on a top-level type.
- Enum
- Represents an
enumdefinition. - Lifetime
- A lifetime.
- Named
Field - Represents a named
structfield. - Path
Segment - A path segment, like
std,collections, andHashMapinstd::collections::HashMap. - Reference
Type - The name of a type (struct or enum) declared elsewhere.
- Slice
Type - A slice type.
- Struct
- Represents a
structdefinition. - Type
Path - The name of a type (struct or enum) declared elsewhere.
- Unnamed
Field - Represents a named
structfield. - Variant
- A variant of an enum.
- Variant
Attributes - The attributes that are present on an individual enum variant.
Enums§
- Builtin
Type - The built-in types.
- Generic
Argument - A generic argument provided to a path segment.
- Generic
Parameter - A generic parameter.
- Item
- Represents an item.
- Rename
Rule - A rename rule, signifying that something should be renamed to the given case.
- Struct
Content - A list of fields. The fields are either all named or all unnamed.
- Type
- Represents a type use, e. g. in a struct definition, function definition, or type alias.
- Variant
Content - The content of an enum variant.
- Visibility
- A visibility modifier for an item.
Traits§
- Camo
- Describes how to construct a type definition for a given type.