We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enum_from_primitive! { custom_derive! { #[derive(Debug, Eq, PartialEq, Hash, Copy, Clone, IterVariants(AgentTypeVariants))] pub enum AgentType { Minion , Spore, Player, FriendlyBullet, Enemy, EnemyBullet, Resource, Prop, } } }
fails with
src/backend/world/mod.rs:21:1: 21:14 error: no rules expected the token `custom_derive` src/backend/world/mod.rs:21 custom_derive! {
The text was updated successfully, but these errors were encountered:
fwiw, https://crates.io/crates/enum-primitive-derive should work in that case a bit better.
Sorry, something went wrong.
No branches or pull requests
fails with
The text was updated successfully, but these errors were encountered: