xwt_anchor/impls/core/
from.rs

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