Skip to main content

Ix

Trait Ix 

Source
pub trait Ix {
    const MANIFEST: Manifest<'static>;
}
Expand description

The compile-time description of a #[derive(Ix)] type.

Every field is const-foldable. Layout figures (size, align, offsets) are produced by the compiler via core::mem in const context, so the manifest is guaranteed to match the real in-memory layout — it is computed by the same compiler that lays out the struct.

Required Associated Constants§

Source

const MANIFEST: Manifest<'static>

The semantic manifest for this type and schema version.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§