Struct alloy_sol_types::sol_data::IntBitCount
source · pub struct IntBitCount<const N: usize>;
Trait Implementations§
source§impl SupportedInt for IntBitCount<104>
impl SupportedInt for IntBitCount<104>
source§const SKIP_BYTES: usize = 3usize
const SKIP_BYTES: usize = 3usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i128) -> WordToken
fn tokenize_int(int: i128) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i128
fn detokenize_int(token: WordToken) -> i128
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u128) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u128
fn detokenize_uint(token: WordToken) -> u128
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<112>
impl SupportedInt for IntBitCount<112>
source§const SKIP_BYTES: usize = 2usize
const SKIP_BYTES: usize = 2usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i128) -> WordToken
fn tokenize_int(int: i128) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i128
fn detokenize_int(token: WordToken) -> i128
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u128) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u128
fn detokenize_uint(token: WordToken) -> u128
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<120>
impl SupportedInt for IntBitCount<120>
source§const SKIP_BYTES: usize = 1usize
const SKIP_BYTES: usize = 1usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i128) -> WordToken
fn tokenize_int(int: i128) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i128
fn detokenize_int(token: WordToken) -> i128
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u128) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u128
fn detokenize_uint(token: WordToken) -> u128
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<128>
impl SupportedInt for IntBitCount<128>
source§const SKIP_BYTES: usize = 0usize
const SKIP_BYTES: usize = 0usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i128) -> WordToken
fn tokenize_int(int: i128) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i128
fn detokenize_int(token: WordToken) -> i128
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u128) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u128
fn detokenize_uint(token: WordToken) -> u128
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<136>
impl SupportedInt for IntBitCount<136>
source§const SKIP_BYTES: usize = 15usize
const SKIP_BYTES: usize = 15usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<144>
impl SupportedInt for IntBitCount<144>
source§const SKIP_BYTES: usize = 14usize
const SKIP_BYTES: usize = 14usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<152>
impl SupportedInt for IntBitCount<152>
source§const SKIP_BYTES: usize = 13usize
const SKIP_BYTES: usize = 13usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<16>
impl SupportedInt for IntBitCount<16>
source§const SKIP_BYTES: usize = 0usize
const SKIP_BYTES: usize = 0usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i16) -> WordToken
fn tokenize_int(int: i16) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i16
fn detokenize_int(token: WordToken) -> i16
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i16, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u16) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u16
fn detokenize_uint(token: WordToken) -> u16
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<160>
impl SupportedInt for IntBitCount<160>
source§const SKIP_BYTES: usize = 12usize
const SKIP_BYTES: usize = 12usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<168>
impl SupportedInt for IntBitCount<168>
source§const SKIP_BYTES: usize = 11usize
const SKIP_BYTES: usize = 11usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<176>
impl SupportedInt for IntBitCount<176>
source§const SKIP_BYTES: usize = 10usize
const SKIP_BYTES: usize = 10usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<184>
impl SupportedInt for IntBitCount<184>
source§const SKIP_BYTES: usize = 9usize
const SKIP_BYTES: usize = 9usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<192>
impl SupportedInt for IntBitCount<192>
source§const SKIP_BYTES: usize = 8usize
const SKIP_BYTES: usize = 8usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<200>
impl SupportedInt for IntBitCount<200>
source§const SKIP_BYTES: usize = 7usize
const SKIP_BYTES: usize = 7usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<208>
impl SupportedInt for IntBitCount<208>
source§const SKIP_BYTES: usize = 6usize
const SKIP_BYTES: usize = 6usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<216>
impl SupportedInt for IntBitCount<216>
source§const SKIP_BYTES: usize = 5usize
const SKIP_BYTES: usize = 5usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<224>
impl SupportedInt for IntBitCount<224>
source§const SKIP_BYTES: usize = 4usize
const SKIP_BYTES: usize = 4usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<232>
impl SupportedInt for IntBitCount<232>
source§const SKIP_BYTES: usize = 3usize
const SKIP_BYTES: usize = 3usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<24>
impl SupportedInt for IntBitCount<24>
source§const SKIP_BYTES: usize = 1usize
const SKIP_BYTES: usize = 1usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i32) -> WordToken
fn tokenize_int(int: i32) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i32
fn detokenize_int(token: WordToken) -> i32
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i32, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u32) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u32
fn detokenize_uint(token: WordToken) -> u32
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<240>
impl SupportedInt for IntBitCount<240>
source§const SKIP_BYTES: usize = 2usize
const SKIP_BYTES: usize = 2usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<248>
impl SupportedInt for IntBitCount<248>
source§const SKIP_BYTES: usize = 1usize
const SKIP_BYTES: usize = 1usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<256>
impl SupportedInt for IntBitCount<256>
source§const SKIP_BYTES: usize = 0usize
const SKIP_BYTES: usize = 0usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: I256) -> WordToken
fn tokenize_int(int: I256) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I256
fn detokenize_int(token: WordToken) -> I256
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I256, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: U256) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U256
fn detokenize_uint(token: WordToken) -> U256
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<32>
impl SupportedInt for IntBitCount<32>
source§const SKIP_BYTES: usize = 0usize
const SKIP_BYTES: usize = 0usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i32) -> WordToken
fn tokenize_int(int: i32) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i32
fn detokenize_int(token: WordToken) -> i32
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i32, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u32) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u32
fn detokenize_uint(token: WordToken) -> u32
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<40>
impl SupportedInt for IntBitCount<40>
source§const SKIP_BYTES: usize = 3usize
const SKIP_BYTES: usize = 3usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i64) -> WordToken
fn tokenize_int(int: i64) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i64
fn detokenize_int(token: WordToken) -> i64
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i64, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u64) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u64
fn detokenize_uint(token: WordToken) -> u64
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<48>
impl SupportedInt for IntBitCount<48>
source§const SKIP_BYTES: usize = 2usize
const SKIP_BYTES: usize = 2usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i64) -> WordToken
fn tokenize_int(int: i64) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i64
fn detokenize_int(token: WordToken) -> i64
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i64, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u64) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u64
fn detokenize_uint(token: WordToken) -> u64
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<56>
impl SupportedInt for IntBitCount<56>
source§const SKIP_BYTES: usize = 1usize
const SKIP_BYTES: usize = 1usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i64) -> WordToken
fn tokenize_int(int: i64) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i64
fn detokenize_int(token: WordToken) -> i64
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i64, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u64) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u64
fn detokenize_uint(token: WordToken) -> u64
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<64>
impl SupportedInt for IntBitCount<64>
source§const SKIP_BYTES: usize = 0usize
const SKIP_BYTES: usize = 0usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i64) -> WordToken
fn tokenize_int(int: i64) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i64
fn detokenize_int(token: WordToken) -> i64
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i64, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u64) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u64
fn detokenize_uint(token: WordToken) -> u64
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<72>
impl SupportedInt for IntBitCount<72>
source§const SKIP_BYTES: usize = 7usize
const SKIP_BYTES: usize = 7usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i128) -> WordToken
fn tokenize_int(int: i128) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i128
fn detokenize_int(token: WordToken) -> i128
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u128) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u128
fn detokenize_uint(token: WordToken) -> u128
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<8>
impl SupportedInt for IntBitCount<8>
source§const SKIP_BYTES: usize = 0usize
const SKIP_BYTES: usize = 0usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i8) -> WordToken
fn tokenize_int(int: i8) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i8
fn detokenize_int(token: WordToken) -> i8
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i8, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u8) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u8
fn detokenize_uint(token: WordToken) -> u8
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<80>
impl SupportedInt for IntBitCount<80>
source§const SKIP_BYTES: usize = 6usize
const SKIP_BYTES: usize = 6usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i128) -> WordToken
fn tokenize_int(int: i128) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i128
fn detokenize_int(token: WordToken) -> i128
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u128) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u128
fn detokenize_uint(token: WordToken) -> u128
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<88>
impl SupportedInt for IntBitCount<88>
source§const SKIP_BYTES: usize = 5usize
const SKIP_BYTES: usize = 5usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i128) -> WordToken
fn tokenize_int(int: i128) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i128
fn detokenize_int(token: WordToken) -> i128
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u128) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u128
fn detokenize_uint(token: WordToken) -> u128
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<96>
impl SupportedInt for IntBitCount<96>
source§const SKIP_BYTES: usize = 4usize
const SKIP_BYTES: usize = 4usize
The difference between the representation’s and this integer’s bytes:
(Self::Int::BITS - Self::BITS) / 8
Read moresource§fn tokenize_int(int: i128) -> WordToken
fn tokenize_int(int: i128) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> i128
fn detokenize_int(token: WordToken) -> i128
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: i128, out: &mut Vec<u8>)
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
fn tokenize_uint(uint: u128) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> u128
fn detokenize_uint(token: WordToken) -> u128
Detokenizes an unsigned integer.
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more