Module primitive
Expand description
Basic public types used in the HOPR protocol. This crate contains basic types used throughout the entire HOPR codebase. Types from this crate are not necessarily specific only to HOPR.
Modules§
- balance
- Contains implementations for the token and coin balance types.
- bounded
- Contains various size-bounded types
- errors
- Lists all errors in this crate.
- prelude
- primitives
- Implements the most primitive types, such as U256 or Address.
- traits
- Defines commonly used traits across the entire code base.
Functions§
- f64_
approx_ eq - Approximately compares two double-precision floats.
- to_
hex_ shortened - Converts the given
datainto a hex string, removing the middle part of the string if it is longer thanMof hex characters.