Expand description
Utility types for attribute parsing.
Modulesยง
- flag ๐
- ident_
string ๐ - ignored ๐
- over_
ride ๐ - parse_
attribute ๐ - path_
list ๐ - path_
to_ ๐string - shape ๐
- spanned_
value ๐ - with_
original ๐
Structsยง
- A meta-item that can be present as a word - with no value - or absent.
- A wrapper for an
Ident
which also keeps the value as a string. - An efficient way of discarding data from a syntax element.
- A list of
syn::Path
instances. This type is used to extract a list of paths from an attribute. - A value and an associated position in source code. The main use case for this is to preserve position information to emit warnings from proc macros. You can use a
SpannedValue<T>
as a field in any struct that implements or derives any ofdarling
โs core traits. - A container to parse some syntax and retain access to the original.
Enumsยง
- A value which can inherit a default value or have an explicit value specified.
- Description of how fields in a struct or variant are syntactically laid out.
Traitsยง
- Get the โshapeโ of a fields container, such as a struct or variant.
Functionsยง
- Try to parse an attribute into a meta list. Path-type meta values are accepted and returned as empty lists with their passed-in path. Name-value meta values and non-meta attributes will cause errors to be returned.
- Transform Rust paths to a readable and comparable string.