spire_enum_macros 0.3.0

Procedural macros to facilitate enum usage, such as when delegating implementations, extracting variant types, or creating enum tables.
Documentation
use super::*;

/// Shorthand for `attrs = [derive(...)]`
#[derive(Parse, ToTokens)]
pub struct SettingDerive {
	pub kw: kw_derive,
	pub paths: Paren<Punctuated<Path, Token![,]>>,
}

#[derive(Parse, ToTokens)]
pub struct SettingAttrs {
	pub kw: kw_attrs,
	pub attrs: Paren<Punctuated<SynMeta, Token![,]>>,
}

pub use kw::{attrs as kw_attrs, derive as kw_derive};

mod kw {
	use super::*;
	custom_keyword!(derive);
	custom_keyword!(attrs);
}