pub enum DataPieceId {
Program,
Input(u32),
Output(u32),
CellDep(u32),
GroupInput(u32),
GroupOutput(u32),
Witness(u32),
WitnessGroupInput(u32),
WitnessGroupOutput(u32),
}
Expand description
A pointer to the data that is part of the transaction.
Variants§
Program
Target program. Usually located in cell data.
Input(u32)
The nth input cell data.
Output(u32)
The nth output data.
CellDep(u32)
The nth cell dep cell data.
GroupInput(u32)
The nth group input cell data.
GroupOutput(u32)
The nth group output data.
Witness(u32)
The nth witness.
WitnessGroupInput(u32)
The nth witness group input.
WitnessGroupOutput(u32)
The nth witness group output.
Trait Implementations§
Source§impl Clone for DataPieceId
impl Clone for DataPieceId
Source§fn clone(&self) -> DataPieceId
fn clone(&self) -> DataPieceId
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<DL> DataSource<DataPieceId> for TxData<DL>
impl<DL> DataSource<DataPieceId> for TxData<DL>
Source§impl Debug for DataPieceId
impl Debug for DataPieceId
Source§impl Hash for DataPieceId
impl Hash for DataPieceId
Source§impl PartialEq for DataPieceId
impl PartialEq for DataPieceId
impl Eq for DataPieceId
impl StructuralPartialEq for DataPieceId
Auto Trait Implementations§
impl Freeze for DataPieceId
impl RefUnwindSafe for DataPieceId
impl Send for DataPieceId
impl Sync for DataPieceId
impl Unpin for DataPieceId
impl UnwindSafe for DataPieceId
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<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