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