Module utils

Source

Modules§

collections
math
serde
sync

Structs§

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.
HexParseError
Defines errors which can occur during parsing of hexadecimal strings.

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.
bytes_to_hex_string
Renders an array of bytes as hex into a String.
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.
hex_to_bytes
Parses a hex string into an array of bytes of known size.
new_array_vec
Returns an array of N vectors initialized with the specified capacity.
parse_hex_string_as_word
parse_hex_to_felts
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.
word_to_masm_push_string
Converts a word into a string of the word’s field elements separated by periods, which can be used on a MASM push instruction to push the word onto the stack.