Skip to main content

Module programs

Module programs 

Source
Expand description

This module provides the ProgramBase implementation along with its associated aliases, supporting traits, and more.

Structs§

InstructionSetDeprecated
The implementation is designed to provide a structured representation of a set of rules and an optional initial state for a Turing machine or similar computational model. It encapsulates the rules that dictate the machine’s behavior and the starting point for its execution.
ProgramBase
The ProgramBase struct is used to define a generic program capable of being executed by a Turing machine or similar computational model. It consists of an optional initial state, a set of rules (or instructions) used to indicate how the machine should respond under different circumstances, and a marker to associate the generic parameters with the struct.

Traits§

RawRuleset
The RawRuleset trait establishes an interface common to all compatible sets of rules for the framework.
RuleSetMut
Ruleset

Type Aliases§

Program
a type alias for a ProgramBase using a Vec as the ruleset
ProgramArray
ProgramBMap
ProgramBSet
ProgramMap
a type alias for a ProgramBase using a HashMap as the ruleset, using the head as key and the tail as value
ProgramSet
a type alias for a ProgramBase using a HashSet consisting of rules as the store
ProgramSlice
A type alias for a ProgramBase configured to use a slice of rules as the ruleset, with default generic parameters for the state and action types