Crate winter_utils
source ·Expand description
This crate contains utility traits, functions, and macros used by other crates of Winterfell STARK prover and verifier.
Re-exports§
pub use boxed::*;Deprecated
Modules§
- boxedDeprecated
- collectionsDeprecatedFeature-based re-export of common collection components.
- Components needed for parallel iterators.
- stringDeprecatedFeature-based re-export of common string components.
Macros§
- Applies a procedure to the provided slice either in a single thread or multiple threads based on whether
concurrentfeature is enabled. - Returns either a regular or a parallel iterator depending on whether
concurrentfeature is enabled. - Returns either a regular or a parallel mutable iterator depending on whether
concurrentfeature is enabled.
Structs§
- An adapter of ByteReader to any type that implements std::io::Read
- Implements ByteReader trait for a slice of bytes.
Enums§
- Defines errors which can occur during deserialization.
Traits§
- Defines a zero-copy representation of
Selfas a sequence of bytes. - Defines how primitive values are to be read from
Self. - Defines how primitive values are to be written into
Self. - Defines how to deserialize
Selffrom bytes. - Defines how
Selfcan be read from a sequence of random bytes. - Defines how to serialize
Selfinto bytes.
Functions§
- Transmutes a slice of
narrays each of lengthN, into a slice ofN*nelements. - Transmutes a vector of
narrays each of lengthN, into a vector ofN*nelements. - Transmutes a slice of
nelements into a slice ofn/Nelements, each of which is an array ofNelements. - Transmutes a vector of
nelements into a vector ofn/Nelements, each of which is an array ofNelements. - Transposes a slice of
nelements into a matrix withNcolumns andn/Nrows. - Returns a vector of the specified length with un-initialized memory.