1 2 3 4 5 6 7 8 9 10 11 12 13
/// Macro `from_number` to implement conversion from number types to `Value`. #[macro_export] macro_rules! from_number { ($($ty:ident)*) => { $( impl From<$ty> for Value { fn from(n: $ty) -> Self { Value::Number(n.into()) } } )* }; }