Trait uefi::data_types::Align [−][src]
pub trait Align { fn alignment() -> usize; fn assert_aligned(storage: &mut [u8]) { ... } }
Expand description
Trait for querying the alignment of a struct
Needed for dynamic-sized types because mem::align_of
has a Sized
bound (due to dyn Trait
)
Required methods
Provided methods
fn assert_aligned(storage: &mut [u8])
[src]
fn assert_aligned(storage: &mut [u8])
[src]Assert that some storage is correctly aligned for this type
Implementors
impl Align for MemoryDescriptor
[src]
impl Align for MemoryDescriptor
[src]impl<Header> Align for NamedFileProtocolInfo<Header>
[src]
impl<Header> Align for NamedFileProtocolInfo<Header>
[src]