1 use crate::simd::{LaneCount, Simd, SimdElement, SupportedLaneCount};
4 macro_rules! impl_fmt_trait {
5 { $($trait:ident,)* } => {
7 impl<T, const LANES: usize> fmt::$trait for Simd<T, LANES>
9 LaneCount<LANES>: SupportedLaneCount,
10 T: SimdElement + fmt::$trait,
12 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
14 struct Wrapper<'a, T: fmt::$trait>(&'a T);
16 impl<T: fmt::$trait> fmt::Debug for Wrapper<'_, T> {
17 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
23 .entries(self.as_array().iter().map(|x| Wrapper(x)))