IsLayout

Trait IsLayout 

Source
pub trait IsLayout:
    Sealed
    + Sized
    + Sync
    + Send
    + Copy
    + Clone
    + Unpin
    + RefUnwindSafe
    + UnwindSafe
    + 'static {
    type Size: IsSize;
    type Alignment: IsAlignment;
}
Expand description

Marker only implemented for Layout.

This trait is sealed and cannot be implemented by external types.

Required Associated Types§

Source

type Size: IsSize

Size of the layout.

Source

type Alignment: IsAlignment

Alignment requirement of the layout;

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<Size: IsSize, Alignment: IsAlignment> IsLayout for Layout<Size, Alignment>

Source§

type Size = Size

Source§

type Alignment = Alignment