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 typeQ, providing methods for state manipulation and retrieval.StateBase<Q, K>- A dynamic state representation capable of generically associating some stateQwith a particular kindK.
Modules§
- error
- the
errormodule defines custom error handling routines for the crate - traits
- this module implements various traits supporting the
Statetype - types
- additional types for the
statemodule
Structs§
- Nary
- State
Stateis generic over some typeQthat implements theRawStatetrait.- State
Base StateBaseis an abstract object that allows a particular kind of state to be associated with some generic stateQ
Enums§
Traits§
- NState
Kind - a particular kind of state that is defined by some rank
- RawState
- RawState is a trait that defines the types of states
- RawState
Kind - a private, base represenation of a state kind
- State
Kind - note: this trait is auto implemented for types that implement
AsRef<str>. - State
Repr - The
StateReprtrait defines the base type for stateful items, allowing for a generic item type to be associated with the state. - Stateful
Statefulis a trait establishing a common interface for all types that are state-aware.
Type Aliases§
- Binary
State - Denary
State - NState
- A type alias for a
StateBaseequipped with aNarykind of state - Nonary
State - Octonary
State - Quaternary
State - Quinary
State - Result
- a type alias for a
Resultthat employs the customErrortype - Senary
State - Septenary
State - Ternary
State - Unary
State