Crate camo_core

Crate camo_core 

Source
Expand description

A crate for representing and creating Rust type definitions as values, i. e. a subset of the Rust abstract syntax.

Structs§

ArrayType
An array type.
Container
A container of some type definition.
ContainerAttributes
The keys and associated values present in the attribute on a top-level type.
Enum
Represents an enum definition.
Lifetime
A lifetime.
NamedField
Represents a named struct field.
PathSegment
A path segment, like std, collections, and HashMap in std::collections::HashMap.
ReferenceType
The name of a type (struct or enum) declared elsewhere.
SliceType
A slice type.
Struct
Represents a struct definition.
TypePath
The name of a type (struct or enum) declared elsewhere.
UnnamedField
Represents a named struct field.
Variant
A variant of an enum.
VariantAttributes
The attributes that are present on an individual enum variant.

Enums§

BuiltinType
The built-in types.
GenericArgument
A generic argument provided to a path segment.
GenericParameter
A generic parameter.
Item
Represents an item.
RenameRule
A rename rule, signifying that something should be renamed to the given case.
StructContent
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.
VariantContent
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.