Skip to main content

PrimitiveKind

Trait PrimitiveKind 

Source
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§

Source

const IS_UNSIGNED: bool

Whether the logical type is unsigned (true for u8/u16/u32/u64).

Source

const MAX_U64: u64

Maximum representable value as u64 for unsigned types (unused for signed).

Source

const MIN_I64: i64

Minimum representable value as i64 for signed/date types (unused for unsigned).

Source

const MAX_I64: i64

Maximum representable value as i64 for signed/date types (unused for unsigned).

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.

Implementations on Foreign Types§

Source§

impl PrimitiveKind for Date32Type

Source§

impl PrimitiveKind for Date64Type

Source§

impl PrimitiveKind for Int8Type

Source§

impl PrimitiveKind for Int16Type

Source§

impl PrimitiveKind for Int32Type

Source§

impl PrimitiveKind for Int64Type

Source§

impl PrimitiveKind for TimestampMicrosecondType

Source§

impl PrimitiveKind for TimestampMillisecondType

Source§

impl PrimitiveKind for TimestampNanosecondType

Source§

impl PrimitiveKind for TimestampSecondType

Source§

impl PrimitiveKind for UInt8Type

Source§

impl PrimitiveKind for UInt16Type

Source§

impl PrimitiveKind for UInt32Type

Source§

impl PrimitiveKind for UInt64Type

Implementors§