Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions and types.

Structs§

StateLayoutEntry
One entry in the compiled layout derived from a StateProjection.
StateProjection
A stable, keyed declaration of mutable array state.
StateSnapshot
A presence-preserving snapshot produced by StateProjection.

Enums§

SingleOrPair
Helper type to represent either a single value or a pair of values.
SingleOrTriple
Helper type to represent either a single value or a triple of values.
SingleOrVec
Helper type to represent either a single value or a vector of values.

Traits§

IntoOption
A helper trait that is just like Into<Option<T>> but improves ergonomics by allowing implicit conversion from &[T; N] to &[T].
ScalarOrArray
A trait for a scalar or an array.
Updatable
A type whose mutable arrays are declared by one keyed projection.