pub trait AlignmentExporter {
// Required method
fn get_alignment() -> &'static [Alignment];
}Expand description
Any type that uses the procedural macro automatically has this trait implemented for it. Use AlignmentExporter::get_alignment to get the alignment information of a struct.
Required Methods§
Sourcefn get_alignment() -> &'static [Alignment]
fn get_alignment() -> &'static [Alignment]
Get the alignment of a struct.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.