pub enum ContextKind {
TopLevel,
TapLeaf,
MultiBody,
}Expand description
Operator-context kind — where in the descriptor tree an operator appears.
Per SPEC v0.30 §11. Carried by Error::OperatorContextViolation to name
which tree-position a forbidden tag was encountered in.
Variants§
TopLevel
Top-level descriptor position (e.g., bare PkK as the descriptor root).
TapLeaf
Inside a tr() tap-script leaf (BIP-342 tapscript-only operators).
MultiBody
Inside a multi-family body (non-key tag among multi children).
Trait Implementations§
Source§impl Clone for ContextKind
impl Clone for ContextKind
Source§fn clone(&self) -> ContextKind
fn clone(&self) -> ContextKind
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 ContextKind
impl Debug for ContextKind
Source§impl PartialEq for ContextKind
impl PartialEq for ContextKind
Source§fn eq(&self, other: &ContextKind) -> bool
fn eq(&self, other: &ContextKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ContextKind
impl Eq for ContextKind
impl StructuralPartialEq for ContextKind
Auto Trait Implementations§
impl Freeze for ContextKind
impl RefUnwindSafe for ContextKind
impl Send for ContextKind
impl Sync for ContextKind
impl Unpin for ContextKind
impl UnsafeUnpin for ContextKind
impl UnwindSafe for ContextKind
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