Revision control
Copy as Markdown
Other Tools
use serde_repr::Serialize_repr;
#[derive(Serialize_repr)]
#[repr(u8)]
enum SmallPrime {
Two(u8),
Three(u8),
Five(u8),
Seven(u8),
}
fn main() {}
use serde_repr::Serialize_repr;
#[derive(Serialize_repr)]
#[repr(u8)]
enum SmallPrime {
Two(u8),
Three(u8),
Five(u8),
Seven(u8),
}
fn main() {}