Struct rkyv::util::Aligned [−][src]
#[repr(align(16))]pub struct Aligned<T>(pub T);
Wraps a type and aligns it to 16 bytes.
Examples
use core::mem; use rkyv::Aligned; assert_eq!(mem::align_of::<u8>(), 1); assert_eq!(mem::align_of::<Aligned<u8>>(), 16);
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Aligned<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Aligned<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Aligned<T> where
T: UnwindSafe,
impl<T> UnwindSafe for Aligned<T> where
T: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata