pub struct Aligned<const A: usize>;Expand description
A static alignment guarantee of A bytes.
Guaranteed at compile time to represent a power-of-two alignment boundary.
If A is not a power of two, it will fail to compile due to a const assertion check.
§Examples
use hermes_simd_core::align::{Aligned, Alignment};
assert_eq!(Aligned::<32>::ALIGNMENT, Some(32));Trait Implementations§
impl<const A: usize> Copy for Aligned<A>
impl<const A: usize> Eq for Aligned<A>
impl<const A: usize> StructuralPartialEq for Aligned<A>
Auto Trait Implementations§
impl<const A: usize> Freeze for Aligned<A>
impl<const A: usize> RefUnwindSafe for Aligned<A>
impl<const A: usize> Send for Aligned<A>
impl<const A: usize> Sync for Aligned<A>
impl<const A: usize> Unpin for Aligned<A>
impl<const A: usize> UnsafeUnpin for Aligned<A>
impl<const A: usize> UnwindSafe for Aligned<A>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more