Struct alloy_sol_types::abi::token::WordToken
source · pub struct WordToken(pub Word);
Expand description
A single EVM word - T for any value type.
Tuple Fields§
§0: Word
Implementations§
Trait Implementations§
source§impl AsRef<FixedBytes<32>> for WordToken
impl AsRef<FixedBytes<32>> for WordToken
source§impl From<FixedBytes<32>> for WordToken
impl From<FixedBytes<32>> for WordToken
source§impl PartialEq for WordToken
impl PartialEq for WordToken
source§impl<'a> Token<'a> for WordToken
impl<'a> Token<'a> for WordToken
source§fn decode_from(dec: &mut Decoder<'a>) -> Result<Self>
fn decode_from(dec: &mut Decoder<'a>) -> Result<Self>
Decode a token from a decoder.
source§fn head_words(&self) -> usize
fn head_words(&self) -> usize
Calculate the number of head words.
source§fn tail_words(&self) -> usize
fn tail_words(&self) -> usize
Calculate the number of tail words.
source§fn head_append(&self, enc: &mut Encoder)
fn head_append(&self, enc: &mut Encoder)
Append head words to the encoder.
source§fn tail_append(&self, _enc: &mut Encoder)
fn tail_append(&self, _enc: &mut Encoder)
Append tail words to the encoder.
source§fn total_words(&self) -> usize
fn total_words(&self) -> usize
Calculate the total number of head and tail words.
impl Copy for WordToken
impl Eq for WordToken
impl StructuralPartialEq for WordToken
Auto Trait Implementations§
impl Freeze for WordToken
impl RefUnwindSafe for WordToken
impl Send for WordToken
impl Sync for WordToken
impl Unpin for WordToken
impl UnwindSafe for WordToken
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> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated: use
ToHexExt
insteadEncode the hex strict representing
self
into the result.
Lower case letters are used (e.g. f9b4ca
).source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated: use
ToHexExt
insteadEncode the hex strict representing
self
into the result.
Upper case letters are used (e.g. F9B4CA
).source§impl<T> ToHexExt for T
impl<T> ToHexExt for T
source§fn encode_hex(&self) -> String
fn encode_hex(&self) -> String
Encode the hex strict representing
self
into the result.
Lower case letters are used (e.g. f9b4ca
).source§fn encode_hex_upper(&self) -> String
fn encode_hex_upper(&self) -> String
Encode the hex strict representing
self
into the result.
Upper case letters are used (e.g. F9B4CA
).source§fn encode_hex_with_prefix(&self) -> String
fn encode_hex_with_prefix(&self) -> String
Encode the hex strict representing
self
into the result with prefix 0x
.
Lower case letters are used (e.g. 0xf9b4ca
).source§fn encode_hex_upper_with_prefix(&self) -> String
fn encode_hex_upper_with_prefix(&self) -> String
Encode the hex strict representing
self
into the result with prefix 0X
.
Upper case letters are used (e.g. 0xF9B4CA
).