Crate ethnum

source ·
Expand description

This crate implements 256-bit integer types.

The implementation tries to follow as closely as possible to primitive integer types, and should implement all the common methods and traits as the primitive integer types.

Modules

  • This module contains intrinsics used by the I256 and U256 implementations.
  • Convenience re-export of 256-integer types and as- conversion traits.
  • Serde serialization implementation for 256-bit integer types.

Macros

  • Macro for 256-bit signed integer literal.
  • Macro for 256-bit unsigned integer literal.

Structs

  • A 256-bit signed integer type.
  • A 256-bit unsigned integer type.

Traits

  • This trait defines as conversions (casting) from primitive types to I256.
  • This trait defines as conversions (casting) from primitive types to U256.

Type Aliases

  • A 256-bit signed integer type.
  • A 256-bit unsigned integer type.