pub trait PrimitiveKind {
const IS_UNSIGNED: bool;
const MAX_U64: u64;
const MIN_I64: i64;
const MAX_I64: i64;
}Expand description
Compile-time info about primitive kind (signed vs unsigned) and bounds. Implemented for all Liquid-supported primitive integer and date types.
Required Associated Constants§
Sourceconst IS_UNSIGNED: bool
const IS_UNSIGNED: bool
Whether the logical type is unsigned (true for u8/u16/u32/u64).
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.