miniblog.
← Back to all posts
Wilfred Hughes
Jul 2, 2021 at 23:50
Plain data in Rust can be surprisingly verbose. I thought I wanted: enum Action { Changed, Unchanged } but it turned out I wanted this instead: #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] enum Action { Changed, Unchanged }