Skip to main content

Module value

Module value 

Expand description

A Value is an integer or byte sequence in a CPU state or dataflow.

This module contains definitions for three versions of this struct:

Byte sequences in OwnedValue are backed by a Vec<u8>, while they are backed by a &[u8] and &mut [u8] in Value and MutValue, respectively.

Enums§

MutValue
A value that stores mutable references to the underlying data.
OwnedValue
A value that stores its byte data as a Vec<u8>.
Value
A values that stores its byte data as a &[u8].
ValueType
The type of a value. Can be a number (ValueType::Num) or a byte sequence (ValueType::Bytes(num_bytes))

Traits§

AsValue
Trait that is implemented by any type that can be converted into a Value.
ValueArrayEquality
Helper trait that provides value_eq, which compares equality of collections whose elements implement AsValue.