macro_rules! delegate_transcribable {
($wrapper:ident ($inner_ty:ty)) => { ... };
($wrapper:ident { $field:tt : $inner_ty:ty }) => { ... };
($wrapper:ident <$($gen:tt),+> ($inner_ty:ty) $(where $($bounds:tt)+)?) => { ... };
($wrapper:ident <$($gen:tt),+> { $field:tt : $inner_ty:ty } $(where $($bounds:tt)+)?) => { ... };
($wrapper:ident <const $cg_name:ident : $cg_ty:ty> ($inner_ty:ty) $(where $($bounds:tt)+)?) => { ... };
($wrapper:ident <const $cg_name:ident : $cg_ty:ty> { $field:tt : $inner_ty:ty } $(where $($bounds:tt)+)?) => { ... };
($wrapper:ident <$($gen:tt),+, const $cg_name:ident : $cg_ty:ty> ($inner_ty:ty) $(where $($bounds:tt)+)?) => { ... };
($wrapper:ident <$($gen:tt),+, const $cg_name:ident : $cg_ty:ty> { $field:tt : $inner_ty:ty } $(where $($bounds:tt)+)?) => { ... };
}Expand description
Delegates Transcribable to the single inner field of a newtype.
Use this instead of [delegate_const_transcribable!] when the inner type
only implements Transcribable (e.g. BoxedUint).
Supports non-generic and generic types with optional where clauses:
ⓘ
delegate_transcribable!(MyTuple(InnerType));
delegate_transcribable!(MyNamed { field: InnerType });
delegate_transcribable!(MyGeneric<T> { field: Vec<T> } where T: SomeBound);
delegate_transcribable!(MyConst<const N: usize>(SomeType));
delegate_transcribable!(MyMixed<T, const N: usize> { f: [T; N] } where T: SomeBound);