Skip to main content

CStackListHeadPadded

Trait CStackListHeadPadded 

pub trait CStackListHeadPadded: CStackListHeadLimit {
    const HEAD_PADDED: bool;
}
Expand description

Indicates whether the head element is padded to satisfy alignment.

§Examples

use cel_runtime::{CStackList, CStackListHeadPadded, CNil};
type ByteStack = CStackList<u8, CNil<()>>;
assert!(!ByteStack::HEAD_PADDED);

Required Associated Constants§

const HEAD_PADDED: bool

Whether the head element is padded to the next alignment boundary.

§Examples

See the CStackListHeadPadded example.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

§

impl<H, T> CStackListHeadPadded for CStackList<H, T>
where H: 'static, T: CStackListHeadLimit,