Helper function for emitting compile errors.
(span: proc_macro2::Span, message: impl Display)
| 12 | |
| 13 | /// Helper function for emitting compile errors. |
| 14 | fn error<T>(span: proc_macro2::Span, message: impl Display) -> syn::Result<T> { |
| 15 | Err(syn::Error::new(span, message)) |
| 16 | } |
| 17 | |
| 18 | #[proc_macro_derive(EnumSetType, attributes(enumset))] |
| 19 | pub fn derive_enum_set_type(input: TokenStream) -> TokenStream { |
no test coverage detected