Struct rkyv::util::AlignedBytes [−][src]
Expand description
A buffer of bytes aligned to 16 bytes.
Examples
use core::mem;
use rkyv::AlignedBytes;
assert_eq!(mem::align_of::<u8>(), 1);
assert_eq!(mem::align_of::<AlignedBytes<256>>(), 16);
Tuple Fields
0: [u8; N]
Trait Implementations
Auto Trait Implementations
impl<const N: usize> RefUnwindSafe for AlignedBytes<N>
impl<const N: usize> Send for AlignedBytes<N>
impl<const N: usize> Sync for AlignedBytes<N>
impl<const N: usize> Unpin for AlignedBytes<N>
impl<const N: usize> UnwindSafe for AlignedBytes<N>
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more