Crate state

Crate state 

Source
Expand description

The state module provides various abstractions and implementations for working with states within Rust.

  • State<Q> - A generic wrapper type that encapsulates a state of type Q, providing methods for state manipulation and retrieval.
  • StateBase<Q, K> - A dynamic state representation capable of generically associating some state Q with a particular kind K.

Modules§

error
the error module defines custom error handling routines for the crate
traits
this module implements various traits supporting the State type
types
additional types for the state module

Structs§

Nary
State
State is generic over some type Q that implements the RawState trait.
StateBase
StateBase is an abstract object that allows a particular kind of state to be associated with some generic state Q

Enums§

Error
State1
State2
State3
State4
State5
State6
State7
State8
State9
State10

Traits§

NStateKind
a particular kind of state that is defined by some rank
RawState
RawState is a trait that defines the types of states
RawStateKind
a private, base represenation of a state kind
StateKind
note: this trait is auto implemented for types that implement AsRef<str>.
StateRepr
The StateRepr trait defines the base type for stateful items, allowing for a generic item type to be associated with the state.
Stateful
Stateful is a trait establishing a common interface for all types that are state-aware.

Type Aliases§

BinaryState
DenaryState
NState
A type alias for a StateBase equipped with a Nary kind of state
NonaryState
OctonaryState
QuaternaryState
QuinaryState
Result
a type alias for a Result that employs the custom Error type
SenaryState
SeptenaryState
TernaryState
UnaryState