Expand description
Re-exports from the cel-runtime crate for convenient access.
Modules§
- array
- Concrete typed ownership for homogeneous, contiguous arrays. Concrete, contiguous ownership for homogeneous CEL arrays.
- c_
stack_ list - Compile-time stack list implementation for type-safe stack operations.
A
CStackListis aListwith guaranteed memory layout (repr(C)). The tail is stored first, so appending items does not change the memory layout of prior items (though the required alignment may increase).CNil<T>represents the empty list whereTis used to hide the tail forstd::ops::RangeToandstd::ops::RangeToInclusiveindexing. - callable
- Signature-typed callable facade over the canonical shared carrier. Calls native and prepared bodies through one statically fixed signature.
- dyn_
closure - First-class callable CEL values with declared signatures. A first-class, callable CEL value: a compiled body plus its declared signature.
- dyn_
segment - Dynamic segment implementation with runtime type checking. Builds checked instructions for the canonical raw interpreter.
- list_
traits - Traits for working with type lists and type information. Builds and borrows heterogeneous lists without erasing their field types.
- memory
- Memory management and alignment utilities for the runtime. Computes byte offsets for aligned storage.
- owned_
value - Whole-value ownership with complete checked representation witnesses. Owns an erased whole value together with its frozen ownership descriptor.
- prepared_
segment - Prepared typed execution over the existing raw interpreter. Executes one construction-validated canonical borrowed frame.
- raw_
segment - Raw segment implementation without type safety. Registers owned captures and executes an explicitly typed raw frame.
- raw_
sequence - Raw sequence implementation for operation sequences. Stores heterogeneous values whose caller tracks types and destruction.
- raw_
stack - Raw stack implementation for low-level stack operations. Owns aligned heterogeneous values and supports explicit raw ownership transfer.
- raw_vec
- Raw vector implementation for dynamic memory allocation. Aligned byte storage without ownership of values placed in its buffer.
- segment
- Type-safe segment implementation with compile-time validation.
- tuple_
list - Tuple list implementation for type-safe tuple operations.
Implements
Listfor tuples where()is an empty list and(H, T)is a list with a head and tail. - value_
type - Complete recursive canonical metadata and sealed concrete representation witnesses. Describes complete recursive identities independently of interpreter descriptors.
Structs§
- Array
- Owns homogeneous, contiguous elements without bounds on the element type.
- ArrayOf
- Names a homogeneous array whose elements use witness
E. - Associated
Type - Associates a source-ordered tuple field with its canonical physical offset.
- CNil
- Empty
repr(C)list used as the tail sentinel forCStackList. - CStack
List - A list using a guaranteed memory layout (
repr(C)), with tail stored first so appending items does not change the memory layout of prior items. - Callable
- Shares a callable whose borrowed arguments and owned result have fixed Rust types.
- Cons
- Names a source-first tuple head
Hfollowed by canonical list tailT. - DynClosure
- A first-class, callable CEL value: a compiled body plus its declared parameter/return types.
- DynSegment
- Owns validated raw instructions and complete canonical stack metadata.
- FnOf
- Names a callable with a complete canonical parameter and result signature.
- Leaf
- Names an opaque host leaf of type
T, including explicitly registered(). - List
Type Iterator - Iterator over type-level
Listvalues producing properties viaP. - Nil
- Names canonical source unit, represented by
CNil<()>, not a host(). - Owned
Value - Owns exactly one live erased value and its complete immutable descriptor.
- Prepared
Segment - Owns a frozen raw body with exact canonical argument/result witnesses.
- RawSegment
- A segment represents a sequence of operations that can be executed.
- RawSequence
- A sequence that stores heterogeneous values with proper alignment.
- RawStack
- A simple raw stack that stores values as raw bytes. Each value is naturally aligned given the base alignment of the stack, which is the maximum alignment of any value stored in the stack. Live values are owned until popped, explicitly released, or destroyed in reverse push order.
- RawVec
- Stores bytes at a fixed power-of-two alignment after allocation.
- Segment
- A type-safe segment that represents a sequence of operations.
- Stack
Info - Describes a live canonical stack slot.
- Undefined
- Marker type representing the head of an empty list.
- Value
Type - Owns immutable recursive identity, canonical layout, and trusted operations.
Enums§
- Value
Kind - Identifies a value structurally, independently of aggregate storage markers.
Traits§
- Argument
List - Names a canonical tuple argument list, sealed to
NilandCons. - CStack
List Head Limit - Describes the trusted head boundary of a canonical stack-list representation.
- CStack
List Head Padded - Indicates whether the head element is padded to satisfy alignment.
- Empty
List - Trait implemented by empty lists to support list construction.
- IntoC
Stack List - Converts tuples and list-like values into a source-ordered
CStackList. - Into
List - Moves source fields into a type-level
List. - Into
Rust Tuple - Moves a canonical list into a native Rust tuple in logical source order.
- Into
Tuple List - Converts tuples into a
Listrepresentation where()is empty and(H, T)is a cons cell. - List
- Represents a finite heterogeneous list with source-ordered heads and tails.
- List
Index - Indexing for lists using typenum-based indices and ranges.
- List
Type Iterator Advance - Advance function provider used by
ListTypeIterator. - List
Type Property - Property generator for iterating over type-level lists.
- Segment
Callable - Callable segment abstraction for uniform invocation across arities.
- Stack
Result - Extracts a canonical typed segment’s result or its empty-stack marker.
- ToList
- Converts to a type-level
Listwithout consuming the source. - ToType
IdList - Enumerates opaque leaf types in a concrete preloaded stack list.
- Value
Repr - Names a trusted concrete representation without wrapping its runtime value.
Functions§
- align_
index - Returns the least aligned index not smaller than
index.
Type Aliases§
- Call
DynFn - A monomorphized dispatcher for
DynClosure::call_boxed: runs a closure’s body viaDynSegment::call_dyn::<R>for some concreteRthe dispatcher itself already knows, boxing the result so the caller (which only knowsRdynamically, as aTypeId) doesn’t need to. - Item
- Names the field or sublist type selected by index
Nin listL. - Reverse
List - Convenience alias for reversing a
Listonto its empty counterpart. - Type
IdIterator - Iterator that yields the
TypeIdof each head in theList.