despatma_lib/lib.rs
1//! Library for the [despatma] crate. This library has some extra tokens not defined in [syn] that are used by
2//! [despatma]. These are used as options for design pattern inputs or for type inputs.
3//!
4//! [syn]: https://github.com/dtolnay/syn
5//! [despatma]: https://github.com/chesedo/despatma
6//!
7//! # Optional features
8//! Like [syn], some functionality are behind optional features to optimize compile-time. Currently the follow feature
9//! is available:
10//! - `extra-traits` — Debug, Eq, PartialEq, Hash impls for all syntax tree types.
11
12mod annotated_type;
13mod key_value;
14mod options_attribute;
15mod simple_type;
16mod trait_specifier;
17
18pub use annotated_type::AnnotatedType;
19pub use key_value::KeyValue;
20pub use options_attribute::OptionsAttribute;
21pub use simple_type::SimpleType;
22pub use trait_specifier::TraitSpecifier;
23// TODO: consider if some Punctuated::parse_terminated should no be Punctuated::parse_seperated_nonempty