pub enum TransactionIndex {
All,
Index(usize),
}
Available on crate feature
eth
only.Expand description
Represents a transaction index where -1 means all transactions
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TransactionIndex
impl Clone for TransactionIndex
source§fn clone(&self) -> TransactionIndex
fn clone(&self) -> TransactionIndex
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 TransactionIndex
impl Debug for TransactionIndex
source§impl Default for TransactionIndex
impl Default for TransactionIndex
source§fn default() -> TransactionIndex
fn default() -> TransactionIndex
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransactionIndex
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TransactionIndex
Available on crate feature
serde
only.source§fn deserialize<D>(
deserializer: D,
) -> Result<TransactionIndex, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<TransactionIndex, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<usize> for TransactionIndex
impl From<usize> for TransactionIndex
source§fn from(index: usize) -> TransactionIndex
fn from(index: usize) -> TransactionIndex
Converts to this type from the input type.
source§impl PartialEq for TransactionIndex
impl PartialEq for TransactionIndex
source§impl Serialize for TransactionIndex
Available on crate feature serde
only.
impl Serialize for TransactionIndex
Available on crate feature
serde
only.source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TransactionIndex
impl Eq for TransactionIndex
impl StructuralPartialEq for TransactionIndex
Auto Trait Implementations§
impl Freeze for TransactionIndex
impl RefUnwindSafe for TransactionIndex
impl Send for TransactionIndex
impl Sync for TransactionIndex
impl Unpin for TransactionIndex
impl UnwindSafe for TransactionIndex
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more