//! Utilities for defining `From` and `TryFrom` impls.
/// Define a `From` impl which creates an enum variant from a value.
#[macro_export]macro_rules!enum_from{($enum:ty, $variant:ident, $from:ty)=>{implFrom<$from>for$enum{fnfrom(val:$from)->Self{Self::$variant(val)}}};}pubuse enum_from;