Skip to main content

Module values

Module values 

Source
Expand description

This module contains the implementation of all levels of value representations, including core_value::CoreValue as the most basic value types, value::Value as the main value representation in the type system, and value_container as the container for values that can be shared across different parts of the system.

Modulesยง

core_value
This module defines the CoreValue enum, which represents the fundamental value types in DATEX. Each variant of CoreValue holds the underlying value of a specific type, such as Integer, Text, or List. CoreValues can be converted to and from native Rust types.
core_value_with_classification
core_values
This module contains the implementation of all core value types in the DATEX type system, such as boolean::Boolean, integer::Integer, and text::Text.
rust_values
Implements TryFrom and TryInto for Rust native types to and from DATEX CoreValue, Value and ValueContainer types. This allows to convert u8 into DATEX Value and ValueContainer and allows to convert CoreValue, Value and ValueContainer into u8.
value
This module contains the implementation of the Value struct, which represents a value in the DATEX type system. A Value consists of a CoreValue representation and an optional custom type.
value_container
This module contains the implementation of the ValueContainer enum, which represents a container for values in the DATEX type system. A ValueContainer can either be a local value, which directly contains a Value, or a shared value, which contains a reference to a SharedContainer.