macro_rules! impl_from_primitive { ($struct:ident$(, [$($dim:tt),*]$(, [$($ddim:tt),*])?)?) => { ... }; }