Module utils

Module utils 

Source

Modules§

math

Structs§

Blake3Digest
N-bytes output of a blake3 function.
Blake3_256
256-bit output blake3 hasher.
DisplayHex
A display helper for formatting a slice of bytes as hex with different options using Rust’s builtin format language
ReadAdapter
An adapter of ByteReader to any type that implements std::io::Read
SliceReader
Implements ByteReader trait for a slice of bytes.

Enums§

DeserializationError
Defines errors which can occur during deserialization.

Traits§

ByteReader
Defines how primitive values are to be read from Self.
ByteWriter
Defines how primitive values are to be written into Self.
Deserializable
Defines how to deserialize Self from bytes.
IntoBytes
PushMany
Serializable
Defines how to serialize Self into bytes.
ToElements
ToHex
This trait represents a value that can be converted to a string of hexadecimal digits which represent the raw byte encoding of that value.

Functions§

bound_into_included_u64
Converts and parses a Bound into an included u64 value.
group_slice_elements
Transmutes a slice of n elements into a slice of n / N elements, each of which is an array of N elements.
hash_string_to_word
Hashes the provided string using the BLAKE3 hash function and converts the resulting digest into a Word.
new_array_vec
Returns an array of N vectors initialized with the specified capacity.
range
Returns a Range initialized with the specified start and with end set to start + len.
to_hex
Construct a String containing the hexadecimal representation of bytes
uninit_vector
Returns a vector of the specified length with un-initialized memory.