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 stateQ
with a particular kindK
.
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 typeQ
that implements theRawState
trait.- State
Base StateBase
is 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
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§
- Binary
State - Denary
State - NState
- A type alias for a
StateBase
equipped with aNary
kind of state - Nonary
State - Octonary
State - Quaternary
State - Quinary
State - Result
- a type alias for a
Result
that employs the customError
type - Senary
State - Septenary
State - Ternary
State - Unary
State