pub enum EmbeddingLocation {
OpReturn {
output: usize,
},
TaprootAnnex {
input: usize,
},
WitnessEnvelope {
input: usize,
index: usize,
pushes: Vec<usize>,
script_type: ScriptType,
},
}Expand description
The location where data exists in a transaction
Variants§
OpReturn
An OP_RETURN with the output index
TaprootAnnex
A taproot annex with the input index
WitnessEnvelope
An OP_FALSE OP_IF <DATA> OP_ENDIF envelope with the input index, envelope index, and data push sizes
Witness envelopes are found in the following contexts:
- TapScript leaf scripts in Taproot script path spends (P2TR)
- Witness scripts in P2WSH spends with at least 2 witness stack elements
Implementations§
Source§impl EmbeddingLocation
impl EmbeddingLocation
Sourcepub fn to_type(&self) -> EmbeddingType
pub fn to_type(&self) -> EmbeddingType
Returns the embedding type
Trait Implementations§
Source§impl Clone for EmbeddingLocation
impl Clone for EmbeddingLocation
Source§fn clone(&self) -> EmbeddingLocation
fn clone(&self) -> EmbeddingLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmbeddingLocation
impl Debug for EmbeddingLocation
Source§impl Display for EmbeddingLocation
impl Display for EmbeddingLocation
impl Eq for EmbeddingLocation
Source§impl PartialEq for EmbeddingLocation
impl PartialEq for EmbeddingLocation
impl StructuralPartialEq for EmbeddingLocation
Auto Trait Implementations§
impl Freeze for EmbeddingLocation
impl RefUnwindSafe for EmbeddingLocation
impl Send for EmbeddingLocation
impl Sync for EmbeddingLocation
impl Unpin for EmbeddingLocation
impl UnsafeUnpin for EmbeddingLocation
impl UnwindSafe for EmbeddingLocation
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