[][src]Module darling::util

Utility types for attribute parsing.

Structs

Flag

Marker type equivalent to Option<()> for use in attribute parsing.

IdentString

A wrapper for an Ident which also keeps the value as a string.

Ignored

An efficient way of discarding data from a syntax element.

PathList

A list of syn::Path instances. This type is used to extract a list of paths from an attribute.

SpannedValue

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 of darling's core traits.

WithOriginal

A container to parse some syntax and retain access to the original.

Enums

Override

A value which can inherit a default value or have an explicit value specified.