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 = 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: I104) -> WordToken
fn tokenize_int(int: I104) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I104
fn detokenize_int(token: WordToken) -> I104
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I104, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I104, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U104) -> WordToken
fn tokenize_uint(uint: U104) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U104
fn detokenize_uint(token: WordToken) -> U104
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<112>
impl SupportedInt for IntBitCount<112>
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: I112) -> WordToken
fn tokenize_int(int: I112) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I112
fn detokenize_int(token: WordToken) -> I112
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I112, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I112, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U112) -> WordToken
fn tokenize_uint(uint: U112) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U112
fn detokenize_uint(token: WordToken) -> U112
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<120>
impl SupportedInt for IntBitCount<120>
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: I120) -> WordToken
fn tokenize_int(int: I120) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I120
fn detokenize_int(token: WordToken) -> I120
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I120, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I120, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U120) -> WordToken
fn tokenize_uint(uint: U120) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U120
fn detokenize_uint(token: WordToken) -> U120
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 = 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: I136) -> WordToken
fn tokenize_int(int: I136) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I136
fn detokenize_int(token: WordToken) -> I136
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I136, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I136, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U136) -> WordToken
fn tokenize_uint(uint: U136) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U136
fn detokenize_uint(token: WordToken) -> U136
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<144>
impl SupportedInt for IntBitCount<144>
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: I144) -> WordToken
fn tokenize_int(int: I144) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I144
fn detokenize_int(token: WordToken) -> I144
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I144, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I144, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U144) -> WordToken
fn tokenize_uint(uint: U144) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U144
fn detokenize_uint(token: WordToken) -> U144
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<152>
impl SupportedInt for IntBitCount<152>
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: I152) -> WordToken
fn tokenize_int(int: I152) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I152
fn detokenize_int(token: WordToken) -> I152
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I152, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I152, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U152) -> WordToken
fn tokenize_uint(uint: U152) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U152
fn detokenize_uint(token: WordToken) -> U152
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 = 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: I160) -> WordToken
fn tokenize_int(int: I160) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I160
fn detokenize_int(token: WordToken) -> I160
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I160, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I160, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U160) -> WordToken
fn tokenize_uint(uint: U160) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U160
fn detokenize_uint(token: WordToken) -> U160
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<168>
impl SupportedInt for IntBitCount<168>
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: I168) -> WordToken
fn tokenize_int(int: I168) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I168
fn detokenize_int(token: WordToken) -> I168
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I168, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I168, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U168) -> WordToken
fn tokenize_uint(uint: U168) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U168
fn detokenize_uint(token: WordToken) -> U168
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<176>
impl SupportedInt for IntBitCount<176>
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: I176) -> WordToken
fn tokenize_int(int: I176) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I176
fn detokenize_int(token: WordToken) -> I176
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I176, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I176, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U176) -> WordToken
fn tokenize_uint(uint: U176) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U176
fn detokenize_uint(token: WordToken) -> U176
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<184>
impl SupportedInt for IntBitCount<184>
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: I184) -> WordToken
fn tokenize_int(int: I184) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I184
fn detokenize_int(token: WordToken) -> I184
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I184, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I184, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U184) -> WordToken
fn tokenize_uint(uint: U184) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U184
fn detokenize_uint(token: WordToken) -> U184
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<192>
impl SupportedInt for IntBitCount<192>
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: I192) -> WordToken
fn tokenize_int(int: I192) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I192
fn detokenize_int(token: WordToken) -> I192
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I192, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I192, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U192) -> WordToken
fn tokenize_uint(uint: U192) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U192
fn detokenize_uint(token: WordToken) -> U192
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<200>
impl SupportedInt for IntBitCount<200>
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: I200) -> WordToken
fn tokenize_int(int: I200) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I200
fn detokenize_int(token: WordToken) -> I200
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I200, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I200, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U200) -> WordToken
fn tokenize_uint(uint: U200) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U200
fn detokenize_uint(token: WordToken) -> U200
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<208>
impl SupportedInt for IntBitCount<208>
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: I208) -> WordToken
fn tokenize_int(int: I208) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I208
fn detokenize_int(token: WordToken) -> I208
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I208, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I208, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U208) -> WordToken
fn tokenize_uint(uint: U208) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U208
fn detokenize_uint(token: WordToken) -> U208
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<216>
impl SupportedInt for IntBitCount<216>
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: I216) -> WordToken
fn tokenize_int(int: I216) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I216
fn detokenize_int(token: WordToken) -> I216
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I216, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I216, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U216) -> WordToken
fn tokenize_uint(uint: U216) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U216
fn detokenize_uint(token: WordToken) -> U216
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<224>
impl SupportedInt for IntBitCount<224>
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: I224) -> WordToken
fn tokenize_int(int: I224) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I224
fn detokenize_int(token: WordToken) -> I224
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I224, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I224, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U224) -> WordToken
fn tokenize_uint(uint: U224) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U224
fn detokenize_uint(token: WordToken) -> U224
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<232>
impl SupportedInt for IntBitCount<232>
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: I232) -> WordToken
fn tokenize_int(int: I232) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I232
fn detokenize_int(token: WordToken) -> I232
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I232, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I232, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U232) -> WordToken
fn tokenize_uint(uint: U232) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U232
fn detokenize_uint(token: WordToken) -> U232
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<24>
impl SupportedInt for IntBitCount<24>
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: I24) -> WordToken
fn tokenize_int(int: I24) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I24
fn detokenize_int(token: WordToken) -> I24
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I24, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I24, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U24) -> WordToken
fn tokenize_uint(uint: U24) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U24
fn detokenize_uint(token: WordToken) -> U24
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<240>
impl SupportedInt for IntBitCount<240>
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: I240) -> WordToken
fn tokenize_int(int: I240) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I240
fn detokenize_int(token: WordToken) -> I240
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I240, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I240, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U240) -> WordToken
fn tokenize_uint(uint: U240) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U240
fn detokenize_uint(token: WordToken) -> U240
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<248>
impl SupportedInt for IntBitCount<248>
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: I248) -> WordToken
fn tokenize_int(int: I248) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I248
fn detokenize_int(token: WordToken) -> I248
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I248, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I248, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U248) -> WordToken
fn tokenize_uint(uint: U248) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U248
fn detokenize_uint(token: WordToken) -> U248
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 = 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: I40) -> WordToken
fn tokenize_int(int: I40) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I40
fn detokenize_int(token: WordToken) -> I40
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I40, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I40, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U40) -> WordToken
fn tokenize_uint(uint: U40) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U40
fn detokenize_uint(token: WordToken) -> U40
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<48>
impl SupportedInt for IntBitCount<48>
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: I48) -> WordToken
fn tokenize_int(int: I48) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I48
fn detokenize_int(token: WordToken) -> I48
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I48, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I48, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U48) -> WordToken
fn tokenize_uint(uint: U48) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U48
fn detokenize_uint(token: WordToken) -> U48
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<56>
impl SupportedInt for IntBitCount<56>
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: I56) -> WordToken
fn tokenize_int(int: I56) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I56
fn detokenize_int(token: WordToken) -> I56
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I56, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I56, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U56) -> WordToken
fn tokenize_uint(uint: U56) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U56
fn detokenize_uint(token: WordToken) -> U56
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 = 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: I72) -> WordToken
fn tokenize_int(int: I72) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I72
fn detokenize_int(token: WordToken) -> I72
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I72, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I72, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U72) -> WordToken
fn tokenize_uint(uint: U72) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U72
fn detokenize_uint(token: WordToken) -> U72
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 = 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: I80) -> WordToken
fn tokenize_int(int: I80) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I80
fn detokenize_int(token: WordToken) -> I80
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I80, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I80, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U80) -> WordToken
fn tokenize_uint(uint: U80) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U80
fn detokenize_uint(token: WordToken) -> U80
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<88>
impl SupportedInt for IntBitCount<88>
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: I88) -> WordToken
fn tokenize_int(int: I88) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I88
fn detokenize_int(token: WordToken) -> I88
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I88, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I88, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U88) -> WordToken
fn tokenize_uint(uint: U88) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U88
fn detokenize_uint(token: WordToken) -> U88
Detokenizes an unsigned integer.
source§impl SupportedInt for IntBitCount<96>
impl SupportedInt for IntBitCount<96>
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: I96) -> WordToken
fn tokenize_int(int: I96) -> WordToken
Tokenizes a signed integer.
source§fn detokenize_int(token: WordToken) -> I96
fn detokenize_int(token: WordToken) -> I96
Detokenizes a signed integer.
source§fn encode_packed_to_int(int: I96, out: &mut Vec<u8>)
fn encode_packed_to_int(int: I96, out: &mut Vec<u8>)
ABI-encode a signed integer in packed mode.
source§fn tokenize_uint(uint: U96) -> WordToken
fn tokenize_uint(uint: U96) -> WordToken
Tokenizes an unsigned integer.
source§fn detokenize_uint(token: WordToken) -> U96
fn detokenize_uint(token: WordToken) -> U96
Detokenizes an unsigned integer.
Auto Trait Implementations§
impl<const N: usize> Freeze for IntBitCount<N>
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
source§impl<T> FmtForward for T
impl<T> FmtForward for T
source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.