Skip to main content

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§