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.
- Owned
Value - A value that stores its byte data as a
Vec<u8>. - Value
- A values that stores its byte data as a
&[u8]. - Value
Type - 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. - Value
Array Equality - Helper trait that provides
value_eq, which compares equality of collections whose elements implementAsValue.