Macro cryptocorrosion_derive_traits
Source macro_rules! cryptocorrosion_derive_traits {
(
#[repr($repr:ident)]
$(#[$attr:meta])*
$vis:vis struct $name:ident $(<$($tyvar:ident),*>)?
$(
(
$($tuple_field_vis:vis $tuple_field_ty:ty),*
);
)?
$(
{
$($field_vis:vis $field_name:ident: $field_ty:ty,)*
}
)?
) => { ... };
(@assert_allowed_struct_repr #[repr(transparent)]) => { ... };
(@assert_allowed_struct_repr #[repr(C)]) => { ... };
(@assert_allowed_struct_repr #[$_attr:meta]) => { ... };
(
@struct_padding_check #[repr(transparent)]
$(($($tuple_field_ty:ty),*))?
$({$($field_ty:ty),*})?
) => { ... };
(
@struct_padding_check #[repr(C)]
$(($($tuple_field_ty:ty),*))?
$({$($field_ty:ty),*})?
) => { ... };
(
#[repr(C)]
$(#[$attr:meta])*
$vis:vis union $name:ident {
$(
$field_name:ident: $field_ty:ty,
)*
}
) => { ... };
}