Trait SupportedAlignment

Source
pub unsafe trait SupportedAlignment: Sealed { }
Expand description

Statically guarantees that an alignment is supported

This trait is sealed: the list of implementors below is total. Users do not have the ability to mark additional Alignment<N> values as supported. Only alignments supported by rustc/LLVM are constructable, i.e. powers of two from 1 to 2^29 (or 2^15 on 16-bit targets).

Implementors§

Source§

impl SupportedAlignment for Alignment<1>

Source§

impl SupportedAlignment for Alignment<2>

Source§

impl SupportedAlignment for Alignment<4>

Source§

impl SupportedAlignment for Alignment<8>

Source§

impl SupportedAlignment for Alignment<16>

Source§

impl SupportedAlignment for Alignment<32>

Source§

impl SupportedAlignment for Alignment<64>

Source§

impl SupportedAlignment for Alignment<128>

Source§

impl SupportedAlignment for Alignment<256>

Source§

impl SupportedAlignment for Alignment<512>

Source§

impl SupportedAlignment for Alignment<1024>

Source§

impl SupportedAlignment for Alignment<2048>

Source§

impl SupportedAlignment for Alignment<4096>

Source§

impl SupportedAlignment for Alignment<8192>

Source§

impl SupportedAlignment for Alignment<16384>

Source§

impl SupportedAlignment for Alignment<32768>

Source§

impl SupportedAlignment for Alignment<65536>

Source§

impl SupportedAlignment for Alignment<131072>

Source§

impl SupportedAlignment for Alignment<262144>

Source§

impl SupportedAlignment for Alignment<524288>

Source§

impl SupportedAlignment for Alignment<1048576>

Source§

impl SupportedAlignment for Alignment<2097152>

Source§

impl SupportedAlignment for Alignment<4194304>

Source§

impl SupportedAlignment for Alignment<8388608>

Source§

impl SupportedAlignment for Alignment<16777216>

Source§

impl SupportedAlignment for Alignment<33554432>

Source§

impl SupportedAlignment for Alignment<67108864>

Source§

impl SupportedAlignment for Alignment<134217728>

Source§

impl SupportedAlignment for Alignment<268435456>

Source§

impl SupportedAlignment for Alignment<536870912>