#[non_exhaustive]#[repr(u8)]pub enum TapCode {
PushBytes32 = 32,
Reserved = 80,
Return = 106,
PushData1 = 76,
PushData2 = 77,
PushData4 = 78,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PushBytes32 = 32
Push the next 32 bytes as an array onto the stack.
Reserved = 80
Synonym for OP_RETURN.
Return = 106
Fail the script immediately.
PushData1 = 76
Read the next byte as N; push the next N bytes as an array onto the stack.
PushData2 = 77
Read the next 2 bytes as N; push the next N bytes as an array onto the stack.
PushData4 = 78
Read the next 4 bytes as N; push the next N bytes as an array onto the stack.
Trait Implementations§
Source§impl StrictDecode for TapCode
impl StrictDecode for TapCode
fn strict_decode(reader: &mut impl TypedRead) -> Result<TapCode, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for TapCode
impl StrictDumb for TapCode
fn strict_dumb() -> TapCode
Source§impl StrictEncode for TapCode
impl StrictEncode for TapCode
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictEnum for TapCode
impl StrictEnum for TapCode
fn from_variant_name( name: &VariantName, ) -> Result<Self, VariantError<&VariantName>>
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictSum for TapCode
impl StrictSum for TapCode
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<VariantName>
fn variant_ord(&self) -> u8
Source§impl StrictType for TapCode
impl StrictType for TapCode
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
impl Copy for TapCode
impl Eq for TapCode
impl StructuralPartialEq for TapCode
Auto Trait Implementations§
impl Freeze for TapCode
impl RefUnwindSafe for TapCode
impl Send for TapCode
impl Sync for TapCode
impl Unpin for TapCode
impl UnwindSafe for TapCode
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.