Skip to main content

Module program

Module program 

Source
Expand description

Define the internal hash program representation used by HashX.

Re-exportsยง

use crate::Error; ๐Ÿ”’
use crate::generator::Generator; ๐Ÿ”’
use crate::register::RegisterFile; ๐Ÿ”’
use crate::register::RegisterId; ๐Ÿ”’
use fixed_capacity_vec::FixedCapacityVec; ๐Ÿ”’
use rand_core::Rng; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::ops::BitXor; ๐Ÿ”’

Structsยง

Program
Generated HashX program, as a boxed array of instructions

Enumsยง

Instruction ๐Ÿ”’
Define the HashX virtual instruction set
Opcode ๐Ÿ”’
An instruction operation, without any of its arguments

Constantsยง

NUM_INSTRUCTIONS ๐Ÿ”’
Maximum number of instructions in the program

Type Aliasesยง

InstructionArray ๐Ÿ”’
Type alias for a full-size array of Instructions
InstructionVec ๐Ÿ”’
Type alias for a FixedCapacityVec that can build InstructionArrays