Skip to main content

repr_c_struct_has_padding

Macro repr_c_struct_has_padding 

Source
#[doc(hidden)]
macro_rules! repr_c_struct_has_padding { ($t:ty, $align:expr, $packed:expr, [$($ts:tt),*]) => { ... }; (@field ([$t:ty])) => { ... }; (@field ($t:ty)) => { ... }; (@field [$t:ty]) => { ... }; (@field $t:ty) => { ... }; }
Expand description

Does the repr(C) struct type $t have padding?

$ts is the list of the type of every field in $t. $t must be a repr(C) struct type, or else struct_has_padding!’s result may be meaningless.