Modules§
Structs§
- Context
- An error context for building errors while parsing a token stream.
- Enum
Repr - A representation of a parsed enumeration from the AST.
- Enum
Variant - A representation of a parsed enumeration variant from the AST.
- Form
Field - A representation of a parsed field for a form from the AST.
- Invalid
Case Convention - Name
Transform Consumer - Struct
Repr - A representation of a parsed struct from the AST.
- Symbol
- Type
Level Name Transform Consumer
Enums§
- Case
Convention - Case conventions supported for Swim derive macros.
- Compound
Type Kind - Field
Kind - Enumeration of ways in which fields can be serialized in Recon documents. Unannotated fields
are assumed to be annotated as
Item::Slot. - Label
- An enumeration representing a field or a compound type. This enumeration helps to keep track of elements that may have been renamed when transmuting.
- Name
Transform - A name transformation that is applied to a single item (such as a field). It may either specify a new name explicitly or define how it should be renamed by a convention.
- Name
Transform Error - Structure
Kind - Transformation
- Description of name transformation strategy that can be read from an attribute applied to an item.
- Type
Contents - An enumeration representing the contents of an input.
- Type
Level Name Transform - Name transformation strategy that is applied to an entire type, transforming the names of all sub-items of that type.
Traits§
- Attributes
- A trait for retrieving attributes on a field or compound type that are prefixed by the provided
symbol. For example calling this on asyn::DeriveInputthat represents the following: - SynOriginal
Functions§
- add_
bound - Adds the provided bound to all generic parameters used in the fields. Fields for which
filter_fnreturns false are ignored. - as_
const - combine_
name_ transform - Assemble an
NameTransformfrom transformations read from the attributes on an item. - deconstruct_
type - Deconstructs a structure or enumeration into its fields. For example:
- get_
attribute_ meta - Returns a vector of metadata for the provided
Attributethat matches the providedSymbol. An error that is encountered is added to theContextand anErris returned. - get_
lit_ str - Returns a
LitStrifLitisLit::Str. Returns anErriflitdoesn’t match and writes an error spanned bylittoctx. - has_
fields - Checks if a data structure has any fields For enums it will check if any variant has fields.
- lit_
str_ to_ expr_ path - str_
to_ ident - string_
to_ ident - to_
compile_ errors - Consumes a vector of errors and produces a compiler error.
- ungroup