abi_stable::inline_storage

Trait AlignerFor

Source
pub trait AlignerFor<const ALIGNMENT: usize>: Sized {
    type Aligner;
}
Expand description

For getting the AlignTo* type which aligns Self to ALIGNMENT.

Required Associated Types§

Source

type Aligner

The AlignTo* type which aligns Self to ALIGNMENT.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> AlignerFor<1> for T

Source§

impl<T> AlignerFor<2> for T

Source§

impl<T> AlignerFor<4> for T

Source§

impl<T> AlignerFor<8> for T

Source§

impl<T> AlignerFor<16> for T

Source§

impl<T> AlignerFor<32> for T

Source§

impl<T> AlignerFor<64> for T

Source§

impl<T> AlignerFor<128> for T

Source§

impl<T> AlignerFor<256> for T

Source§

impl<T> AlignerFor<512> for T

Source§

impl<T> AlignerFor<1024> for T

Source§

impl<T> AlignerFor<2048> for T

Source§

impl<T> AlignerFor<4096> for T

Source§

impl<T> AlignerFor<8192> for T

Source§

impl<T> AlignerFor<16384> for T

Source§

impl<T> AlignerFor<32768> for T