Alignment

Trait Alignment 

Source
pub trait Alignment: Copy + Sealed {
    const ALIGN: usize;
}
Expand description

A marker trait for an alignment value.

Required Associated Constants§

Source

const ALIGN: usize

The alignment in bytes.

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 Alignment for A1

Source§

const ALIGN: usize = 1usize

Source§

impl Alignment for A2

Source§

const ALIGN: usize = 2usize

Source§

impl Alignment for A4

Source§

const ALIGN: usize = 4usize

Source§

impl Alignment for A8

Source§

const ALIGN: usize = 8usize

Source§

impl Alignment for A16

Source§

const ALIGN: usize = 16usize

Source§

impl Alignment for A32

Source§

const ALIGN: usize = 32usize

Source§

impl Alignment for A64

Source§

const ALIGN: usize = 64usize