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