Struct alloy_sol_types::abi::token::DynSeqToken
source · pub struct DynSeqToken<T>(pub Vec<T>);
Expand description
A Dynamic Sequence - T[]
Tuple Fields§
§0: Vec<T>
Implementations§
Trait Implementations§
source§impl<T> AsRef<[T]> for DynSeqToken<T>
impl<T> AsRef<[T]> for DynSeqToken<T>
source§impl<T: Clone> Clone for DynSeqToken<T>
impl<T: Clone> Clone for DynSeqToken<T>
source§fn clone(&self) -> DynSeqToken<T>
fn clone(&self) -> DynSeqToken<T>
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<T: Debug> Debug for DynSeqToken<T>
impl<T: Debug> Debug for DynSeqToken<T>
source§impl<T> From<Vec<T>> for DynSeqToken<T>
impl<T> From<Vec<T>> for DynSeqToken<T>
source§impl<T: PartialEq> PartialEq for DynSeqToken<T>
impl<T: PartialEq> PartialEq for DynSeqToken<T>
source§fn eq(&self, other: &DynSeqToken<T>) -> bool
fn eq(&self, other: &DynSeqToken<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'de, T: Token<'de>> Token<'de> for DynSeqToken<T>
impl<'de, T: Token<'de>> Token<'de> for DynSeqToken<T>
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.
source§impl<'de, T: Token<'de>> TokenSeq<'de> for DynSeqToken<T>
impl<'de, T: Token<'de>> TokenSeq<'de> for DynSeqToken<T>
impl<T: Eq> Eq for DynSeqToken<T>
impl<T> StructuralPartialEq for DynSeqToken<T>
Auto Trait Implementations§
impl<T> Freeze for DynSeqToken<T>
impl<T> RefUnwindSafe for DynSeqToken<T>where
T: RefUnwindSafe,
impl<T> Send for DynSeqToken<T>where
T: Send,
impl<T> Sync for DynSeqToken<T>where
T: Sync,
impl<T> Unpin for DynSeqToken<T>where
T: Unpin,
impl<T> UnwindSafe for DynSeqToken<T>where
T: UnwindSafe,
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: 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
).