Struct alloy_sol_types::abi::token::PackedSeqToken
source · pub struct PackedSeqToken<'a>(pub &'a [u8]);
Expand description
A Packed Sequence - bytes
or string
Tuple Fields§
§0: &'a [u8]
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for PackedSeqToken<'_>
impl AsRef<[u8]> for PackedSeqToken<'_>
source§impl<'a> Clone for PackedSeqToken<'a>
impl<'a> Clone for PackedSeqToken<'a>
source§fn clone(&self) -> PackedSeqToken<'a>
fn clone(&self) -> PackedSeqToken<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PackedSeqToken<'_>
impl Debug for PackedSeqToken<'_>
source§impl<'a> From<&'a [u8]> for PackedSeqToken<'a>
impl<'a> From<&'a [u8]> for PackedSeqToken<'a>
source§impl<'a> PartialEq for PackedSeqToken<'a>
impl<'a> PartialEq for PackedSeqToken<'a>
source§fn eq(&self, other: &PackedSeqToken<'a>) -> bool
fn eq(&self, other: &PackedSeqToken<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'de: 'a, 'a> Token<'de> for PackedSeqToken<'a>
impl<'de: 'a, 'a> Token<'de> for PackedSeqToken<'a>
source§fn decode_from(dec: &mut Decoder<'de>) -> Result<Self>
fn decode_from(dec: &mut Decoder<'de>) -> 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<'a> Copy for PackedSeqToken<'a>
impl<'a> Eq for PackedSeqToken<'a>
impl<'a> StructuralPartialEq for PackedSeqToken<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackedSeqToken<'a>
impl<'a> RefUnwindSafe for PackedSeqToken<'a>
impl<'a> Send for PackedSeqToken<'a>
impl<'a> Sync for PackedSeqToken<'a>
impl<'a> Unpin for PackedSeqToken<'a>
impl<'a> UnwindSafe for PackedSeqToken<'a>
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
).