structured_map/
lib.rs

1//! The `structured_map` macro allows users of the macro to generate structured
2//! maps with a known and finite set of keys that they can perform map functions
3//! on such as `map`, `zip`, `iter` and much more.
4
5mod handler;
6mod types;
7
8// TODO(docs)
9#[proc_macro]
10pub fn structured_map(
11    input: proc_macro::TokenStream,
12) -> proc_macro::TokenStream {
13    handler::handle_structured_map(proc_macro2::TokenStream::from(input))
14        .unwrap_or_else(|err| err.to_compile_error())
15        .into()
16}