1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Implements PseudoDefault from Default.
#[macro_export]
macro_rules! impl_from_default {
    ($t:ty) => {
        impl $crate::PseudoDefault for $t {
            fn pseudo_default() -> Self {
                Default::default()
            }
        }
    };
    ($a:ident, $t:ty) => {
        impl<$a> $crate::PseudoDefault for $t {
            fn pseudo_default() -> Self {
                Default::default()
            }
        }
    };
}