Source code

Revision control

Copy as Markdown

Other Tools

use serde_repr::Serialize_repr;
#[derive(Serialize_repr)]
enum SmallPrime {
Two = 2,
Three = 3,
Five = 5,
Seven = 7,
}
fn main() {}