Terminal

Enum Terminal 

Source
pub enum Terminal<'a, 'b> {
    ScriptHash(Box<'a, Terminal<'a, 'b>>),
    WitnessScriptHash(Box<'a, Terminal<'a, 'b>>),
    PublicKey(Key<'a>),
    PublicKeyHash(Key<'a>),
    WitnessPublicKeyHash(Key<'b>),
    Combo(Key<'a>),
    Multisig(Multikey<'a>),
    SortedMultisig(Multikey<'a>),
    Address(Address<'a>),
    RawScript(&'a [u8]),
    Taproot(Box<'a, Terminal<'a, 'b>>),
    Cosigner(Key<'a>),
}
Expand description

Output descriptor element.

Variants§

§

ScriptHash(Box<'a, Terminal<'a, 'b>>)

Script hash.

§

WitnessScriptHash(Box<'a, Terminal<'a, 'b>>)

Witness script hash.

§

PublicKey(Key<'a>)

Public key.

§

PublicKeyHash(Key<'a>)

Public key hash.

§

WitnessPublicKeyHash(Key<'b>)

Witness public key hash.

§

Combo(Key<'a>)

Unknown purpose.

It is not documented in the specification.

Warning: This is not defined in miniscript.

§

Multisig(Multikey<'a>)

Multiple signature checking.

§

SortedMultisig(Multikey<'a>)

Sorted (deterministic) multiple signature checking.

§

Address(Address<'a>)

A bare Bitcoin address.

§

RawScript(&'a [u8])

A raw script.

§

Taproot(Box<'a, Terminal<'a, 'b>>)

Taproot script.

§

Cosigner(Key<'a>)

Additional cosigner.

Warning: This is not defined in miniscript.

Trait Implementations§

Source§

impl<'a, 'b> Debug for Terminal<'a, 'b>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'b, const N: usize> Decode<'b, &'a Arena<Terminal<'a, 'b>, N>> for Terminal<'a, 'b>

Source§

fn decode( d: &mut Decoder<'b>, ctx: &mut &'a TerminalContext<'a, 'b, N>, ) -> Result<Self, Error>

Decode a value using the given Decoder. Read more
Source§

fn nil() -> Option<Self>

If possible, return a nil value of Self. Read more
Source§

impl<'a, 'b, C> Encode<C> for Terminal<'a, 'b>

Source§

fn encode<W: Write>( &self, e: &mut Encoder<W>, ctx: &mut C, ) -> Result<(), Error<W::Error>>

Encode a value of this type using the given Encoder. Read more
Source§

fn is_nil(&self) -> bool

Is this value of Self a nil value? Read more
Source§

impl<'a, 'b> PartialEq for Terminal<'a, 'b>

Source§

fn eq(&self, other: &Terminal<'a, 'b>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, 'b> StructuralPartialEq for Terminal<'a, 'b>

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for Terminal<'a, 'b>

§

impl<'a, 'b> RefUnwindSafe for Terminal<'a, 'b>

§

impl<'a, 'b> Send for Terminal<'a, 'b>

§

impl<'a, 'b> Sync for Terminal<'a, 'b>

§

impl<'a, 'b> Unpin for Terminal<'a, 'b>

§

impl<'a, 'b> !UnwindSafe for Terminal<'a, 'b>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.