Expand description
The state module provides abstractions and implementations for managing state
within the rstm framework.
Modules§
- error
- This module defines the custom error type for handling various state-related errors.
- traits
- the traits for defining the types of states and their behaviors
- types
- various types and type aliases for working with state
Macros§
Structs§
Enums§
- HaltTag
- Halter
Halterextends the State by allowing for an ‘imaginary’ state that is not actually part of the machine’s state space.- State
Error - the various errors that can occur in the state module
Traits§
- Display
State DisplayStateis a trait that extends theRawStatetrait to include symbolic operations and implementations.- Halt
- The
Halttrait establishes a common interface for any haltable type; - Halt
State - Hash
State - The
HashStatetrait extends theRawStatetrait to include hashing capabilities, streamlining the process of using states as keys in hash maps or sets. - NumState
- The
NumStatetrait extends theRawStatetrait to include numeric operations. - RawState
RawStateis a trait describing objects capable of being used as states in our library. The trait contains a single associated trait, the context, or inner value of the state.- State
Repr - The
StateReprtrait defines a common interface for any implemented representations of state. - Stated
- StdState
- The
StdStatetrait extends the baseRawStatetrait to include additional traits commonly used alongside the state.
Type Aliases§
- AnyState
- A type alias for a State whose inner value is the dynamically sized type of a
boxed
Any. - Maybe
State - A type alias for a State whose inner value is a core::mem::MaybeUninit of
generic type
Q. - MutState
- A type alias for a State whose inner value is a mutable reference to a generic
type
Q. - PtrState
- A type alias for a State whose inner value is a raw pointer to a generic type
Q - RefState
- A type alias for a State whose inner value is a reference to a generic type
Q. - Result
- A type alias for a
Resultthat uses the custom [Error] type - Shard
State - Shared
State