pub trait ConfigCore: 'static + Sized {
type ByteOrder: ByteOrder;
type IntEncoding: IntEncoding<Self::ByteOrder>;
const PREALLOCATION_SIZE_LIMIT: Option<usize>;
const ZERO_COPY_ALIGN_CHECK: bool;
}Expand description
Trait for accessing configuration values when only the constant knobs are needed
(e.g., PREALLOCATION_SIZE_LIMIT, ZERO_COPY_ALIGN_CHECK).
Split from Config to avoid dependency cycles that can overflow the compiler stack,
such as SeqLen -> Config -> SeqLen.
Prefer this trait over Config when you don’t need configuration type parameters
that themselves depend on Config (e.g., SeqLen, which depends on ConfigCore).
Required Associated Constants§
const PREALLOCATION_SIZE_LIMIT: Option<usize>
const ZERO_COPY_ALIGN_CHECK: bool
Required Associated Types§
type ByteOrder: ByteOrder
type IntEncoding: IntEncoding<Self::ByteOrder>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".