pub struct TransactionIndex(pub BigInt);Expand description
Position of a transaction in a given slot
This is not identical to the index of a TransactionInput
Tuple Fields§
§0: BigIntTrait Implementations§
Source§impl Clone for TransactionIndex
impl Clone for TransactionIndex
Source§fn clone(&self) -> TransactionIndex
fn clone(&self) -> TransactionIndex
Returns a duplicate 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 Hash for TransactionIndex
impl Hash for TransactionIndex
Source§impl IsPlutusData for TransactionIndex
impl IsPlutusData for TransactionIndex
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(plutus_data: &PlutusData) -> Result<Self, PlutusDataError>where
Self: Sized,
Source§impl Ord for TransactionIndex
impl Ord for TransactionIndex
Source§fn cmp(&self, other: &TransactionIndex) -> Ordering
fn cmp(&self, other: &TransactionIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransactionIndex
impl PartialEq for TransactionIndex
Source§impl PartialOrd for TransactionIndex
impl PartialOrd for TransactionIndex
Source§impl TryFromPLA<TransactionIndex> for BigNum
impl TryFromPLA<TransactionIndex> for BigNum
fn try_from_pla(val: &TransactionIndex) -> Result<Self, TryFromPLAError>
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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