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);
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
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,