Crate snarkvm_utilities

Source

Re-exports§

pub use biginteger::*;
pub use bititerator::*;
pub use bits::*;
pub use bytes::*;
pub use error::*;
pub use iterator::*;
pub use parallel::*;
pub use self::rand::*;
pub use serialize::*;

Modules§

biginteger
bititerator
bits
bytes
error
iterator
parallel
rand
serialize

Macros§

cfg_chunks
Returns an iterator over chunk_size elements of the slice at a time.
cfg_chunks_mut
Returns an iterator over chunk_size elements of the slice at a time.
cfg_find
Finds the first element that satisfies the predicate function
cfg_find_map
Applies a function and returns the first value that is not None
cfg_into_iter
Creates parallel iterator if parallel feature is enabled.
cfg_iter
Creates parallel iterator over refs if parallel feature is enabled.
cfg_iter_mut
Creates parallel iterator over mut refs if parallel feature is enabled.
cfg_keys
Turns a collection into an iterator.
cfg_par_bridge
Creates parallel iterator from iterator if parallel feature is enabled.
cfg_reduce
Applies the reduce operation over an iterator.
cfg_reduce_with
Applies reduce_with or reduce depending on the serial feature.
cfg_sort_by_cached_key
Performs a sort that caches the extracted keys
cfg_sort_unstable_by
Performs an unstable sort
cfg_sorted_by
Returns a sorted, by-value iterator for the given IndexMap/IndexSet
cfg_values
Turns a collection into an iterator.
cfg_zip_fold
Applies fold to the iterator
push_bytes_to_vec
to_bits_le
Takes as input a sequence of objects, and converts them to a series of little-endian bits. All traits that implement ToBits can be automatically converted to bits in this manner.
to_bytes_le
Takes as input a sequence of structs, and converts them to a series of little-endian bytes. All traits that implement ToBytes can be automatically converted to bytes in this manner.
try_vm_runtime
This macro provides a VM runtime environment which will safely halt without producing logs that look like unexpected behavior. In debug mode, it prints to stderr using the format: “VM safely halted at : ”.

Functions§

error