pub struct IntBitCount<const N: usize>;
Expand description

Specifies the number of bits in an Int or Uint as a type.

Trait Implementations§

source§

impl SupportedInt for IntBitCount<104>

§

type Int = i128

The signed integer Rust representation.
§

type Uint = u128

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 104usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 3usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i128) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i128

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u128) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u128

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u128, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<112>

§

type Int = i128

The signed integer Rust representation.
§

type Uint = u128

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 112usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 2usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i128) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i128

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u128) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u128

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u128, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<120>

§

type Int = i128

The signed integer Rust representation.
§

type Uint = u128

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 120usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 1usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i128) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i128

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u128) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u128

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u128, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<128>

§

type Int = i128

The signed integer Rust representation.
§

type Uint = u128

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 128usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 0usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i128) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i128

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u128) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u128

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u128, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<136>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 136usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 15usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<144>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 144usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 14usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<152>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 152usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 13usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<16>

§

type Int = i16

The signed integer Rust representation.
§

type Uint = u16

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 16usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 0usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i16) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i16

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i16, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u16) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u16

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u16, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<160>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 160usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 12usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<168>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 168usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 11usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<176>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 176usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 10usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<184>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 184usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 9usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<192>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 192usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 8usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<200>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 200usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 7usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<208>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 208usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 6usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<216>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 216usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 5usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<224>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 224usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 4usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<232>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 232usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 3usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<24>

§

type Int = i32

The signed integer Rust representation.
§

type Uint = u32

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 24usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 1usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i32) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i32

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i32, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u32) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u32

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u32, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<240>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 240usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 2usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<248>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 248usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 1usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<256>

§

type Int = Signed<256, 4>

The signed integer Rust representation.
§

type Uint = Uint<256, 4>

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 256usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 0usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: I256) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> I256

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: U256) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> U256

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: U256, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<32>

§

type Int = i32

The signed integer Rust representation.
§

type Uint = u32

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 32usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 0usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i32) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i32

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i32, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u32) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u32

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u32, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<40>

§

type Int = i64

The signed integer Rust representation.
§

type Uint = u64

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 40usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 3usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i64) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i64

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i64, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u64) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u64

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u64, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<48>

§

type Int = i64

The signed integer Rust representation.
§

type Uint = u64

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 48usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 2usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i64) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i64

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i64, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u64) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u64

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u64, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<56>

§

type Int = i64

The signed integer Rust representation.
§

type Uint = u64

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 56usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 1usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i64) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i64

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i64, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u64) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u64

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u64, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<64>

§

type Int = i64

The signed integer Rust representation.
§

type Uint = u64

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 64usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 0usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i64) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i64

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i64, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u64) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u64

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u64, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<72>

§

type Int = i128

The signed integer Rust representation.
§

type Uint = u128

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 72usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 7usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i128) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i128

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u128) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u128

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u128, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<8>

§

type Int = i8

The signed integer Rust representation.
§

type Uint = u8

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 8usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 0usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i8) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i8

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i8, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u8) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u8

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u8, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<80>

§

type Int = i128

The signed integer Rust representation.
§

type Uint = u128

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 80usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 6usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i128) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i128

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u128) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u128

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u128, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<88>

§

type Int = i128

The signed integer Rust representation.
§

type Uint = u128

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 88usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 5usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i128) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i128

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u128) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u128

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u128, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more
source§

impl SupportedInt for IntBitCount<96>

§

type Int = i128

The signed integer Rust representation.
§

type Uint = u128

The unsigned integer Rust representation.
source§

const UINT_NAME: &'static str = _

The name of the Uint type: uint<N>
source§

const INT_NAME: &'static str = _

The name of the Int type: int<N>
source§

const BITS: usize = 96usize

The number of bits in the integer: BITS Read more
source§

const SKIP_BYTES: usize = 4usize

The difference between the representation’s and this integer’s bytes: (Self::Int::BITS - Self::BITS) / 8 Read more
source§

fn tokenize_int(int: i128) -> WordToken

Tokenizes a signed integer.
source§

fn detokenize_int(token: WordToken) -> i128

Detokenizes a signed integer.
source§

fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)

ABI-encode a signed integer in packed mode.
source§

fn tokenize_uint(uint: u128) -> WordToken

Tokenizes an unsigned integer.
source§

fn detokenize_uint(token: WordToken) -> u128

Detokenizes an unsigned integer.
source§

fn encode_packed_to_uint(uint: u128, out: &mut Vec<u8>)

ABI-encode an unsigned integer in packed mode.
source§

const BYTES: usize = _

The number of bytes in the integer: BITS / 8
source§

const WORD_MSB: usize = _

The index of the most significant byte in the Word type. Read more

Auto Trait Implementations§

§

impl<const N: usize> RefUnwindSafe for IntBitCount<N>

§

impl<const N: usize> Send for IntBitCount<N>

§

impl<const N: usize> Sync for IntBitCount<N>

§

impl<const N: usize> Unpin for IntBitCount<N>

§

impl<const N: usize> UnwindSafe for IntBitCount<N>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.