Macro fmt_wrapper
Source macro_rules! fmt_wrapper {
($s:ident<$T:ident> ($($trait:ident),* $(,)?)) => { ... };
($s:ident<$T:ident>.$field:ident {$($trait:ident),* $(,)?}) => { ... };
(@impl $s:ident::<$T:ident>::$trait:ident) => { ... };
(@impl #[field($field:tt)] $s:ident::<$T:ident>::$trait:ident) => { ... };
}
Expand description
ยงExample
use scsys_core::fmt_wrapper;
pub struct Sample<T>(pub T);
fmt_wrapper!(Sample<Q>(Binary, Debug, Display, LowerHex, UpperHex, LowerExp, UpperExp, Pointer));