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
concurrent
feature is enabled. - iter
- Returns either a regular or a parallel iterator depending on whether
concurrent
feature is enabled. - iter_
mut - Returns either a regular or a parallel mutable iterator depending on whether
concurrent
feature 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
Self
as 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
Self
from bytes. - Randomizable
- Defines how
Self
can be read from a sequence of random bytes. - Serializable
- Defines how to serialize
Self
into bytes.
Functions§
- flatten_
slice_ elements - Transmutes a slice of
n
arrays each of lengthN
, into a slice ofN
*n
elements. - flatten_
vector_ elements - Transmutes a vector of
n
arrays each of lengthN
, into a vector ofN
*n
elements. - group_
slice_ elements - Transmutes a slice of
n
elements into a slice ofn
/N
elements, each of which is an array ofN
elements. - transpose_
slice - Transposes a slice of
n
elements into a matrix withN
columns andn
/N
rows. - uninit_
vector ⚠ - Returns a vector of the specified length with un-initialized memory.