[−][src]Derive Macro zookeeper_derive::EnumConvertFromInt
#[derive(EnumConvertFromInt)] { // Attributes available to this derive: #[EnumConvertFromIntFallback] }
Emit an std::convert::From<i32>
implementation for an enum type. When converting from an i32
that does not have an enumeration value, the system will panic, unless a fallback enumeration
symbol is specified with #[EnumConvertFromIntFallback = "Identifier"]
.