Expand description
This crate contains utility traits, functions, and macros used by other crates of Winterfell STARK prover and verifier.
Modules§
- iterators
- Components needed for parallel iterators.
Macros§
- batch_
iter_ mut - Applies a procedure to the provided slice either in a single thread or multiple threads
based on whether
concurrentfeature is enabled. - iter
- Returns either a regular or a parallel iterator depending on whether
concurrentfeature is enabled. - iter_
mut - Returns either a regular or a parallel mutable iterator depending on whether
concurrentfeature is enabled.
Structs§
- Read
Adapter - An adapter of ByteReader to any type that implements std::io::Read
- Slice
Reader - Implements ByteReader trait for a slice of bytes.
Enums§
- Deserialization
Error - Defines errors which can occur during deserialization.
Traits§
- AsBytes
- Defines a zero-copy representation of
Selfas a sequence of bytes. - Byte
Reader - Defines how primitive values are to be read from
Self. - Byte
Writer - Defines how primitive values are to be written into
Self. - Deserializable
- Defines how to deserialize
Selffrom bytes. - Randomizable
- Defines how
Selfcan be read from a sequence of random bytes. - Serializable
- Defines how to serialize
Selfinto bytes.
Functions§
- flatten_
slice_ elements - Transmutes a slice of
narrays each of lengthN, into a slice ofN*nelements. - flatten_
vector_ elements - Transmutes a vector of
narrays each of lengthN, into a vector ofN*nelements. - group_
slice_ elements - Transmutes a slice of
nelements into a slice ofn/Nelements, each of which is an array ofNelements. - transpose_
slice - Transposes a slice of
nelements into a matrix withNcolumns andn/Nrows. - uninit_
vector ⚠ - Returns a vector of the specified length with un-initialized memory.