1 2 3 4 5 6 7 8 9 10 11 12
#[derive(Debug, Clone, PartialEq, Eq, Hash)] #[cfg_attr(feature = "fuzzing", derive(arbitrary::Arbitrary))] pub enum CrgPurpose { Elevation, Friction, } impl_from_str_as_str!( CrgPurpose, "elevation" => Elevation, "friction" => Friction, );