1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! [`From`]. use crate::types::*; /// Implement all traits for a given type. macro_rules! implement { ( $($t:ty,)* ) => { $( impl<T> From<T> for $t { fn from(value: T) -> Self { Self(value) } } )* }; } crate::for_all_material_types!(implement);