Skip to main content

Module types

Module types 

Source
Expand description

Core runtime type definitions.

This module defines the primitive types used by LOGOS programs at runtime. These are type aliases that map LOGOS types to their Rust equivalents.

§Type Mappings

LOGOS TypeRust TypeDescription
Natu64Natural numbers (non-negative)
Inti64Signed integers
Realf64Floating-point numbers
TextStringUTF-8 strings
BoolboolBoolean values
Unit()The unit type
CharcharUnicode scalar values
Byteu8Raw bytes
Seq<T>Vec<T>Ordered sequences
Set<T>HashSet<T>Unordered unique elements
Map<K,V>HashMap<K,V>Key-value mappings

Enums§

Value
Dynamic value type for heterogeneous collections.

Traits§

LogosContains
Unified containment testing for all collection types.

Type Aliases§

Bool
Boolean truth values.
Byte
Raw bytes (0-255).
Char
Unicode scalar values.
Int
Signed integers.
Map
Key-value mappings with hash-based lookup.
Nat
Non-negative integers. Maps to Peano Nat in the kernel.
Real
IEEE 754 floating-point numbers.
Seq
Ordered sequences (lists).
Set
Unordered collections of unique elements.
Text
UTF-8 encoded text strings.
Tuple
Tuple type: Vec of heterogeneous Values (uses LogosIndex from indexing module)
Unit
The unit type (single value).