Struct sapio_miniscript::descriptor::Wsh[][src]

pub struct Wsh<Pk: MiniscriptKey> { /* fields omitted */ }

A Segwitv0 wsh descriptor

Implementations

impl<Pk: MiniscriptKey> Wsh<Pk>[src]

pub fn into_inner(self) -> WshInner<Pk>[src]

Get the Inner

pub fn as_inner(&self) -> &WshInner<Pk>[src]

Get a reference to inner

pub fn new(ms: Miniscript<Pk, Segwitv0>) -> Result<Self, Error>[src]

Create a new wsh descriptor

pub fn new_sortedmulti(k: usize, pks: Vec<Pk>) -> Result<Self, Error>[src]

Create a new sortedmulti wsh descriptor

pub fn to_string_no_checksum(&self) -> String[src]

Get the descriptor without the checksum

Trait Implementations

impl<Pk: Clone + MiniscriptKey> Clone for Wsh<Pk>[src]

impl<Pk: MiniscriptKey> Debug for Wsh<Pk>[src]

impl<Pk: MiniscriptKey> DescriptorTrait<Pk> for Wsh<Pk>[src]

impl<Pk: MiniscriptKey> Display for Wsh<Pk>[src]

impl<Pk: Eq + MiniscriptKey> Eq for Wsh<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for Wsh<Pk>[src]

impl<Pk> FromStr for Wsh<Pk> where
    Pk: MiniscriptKey + FromStr,
    Pk::Hash: FromStr,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

type Err = Error

The associated error which can be returned from parsing.

impl<Pk> FromTree for Wsh<Pk> where
    Pk: MiniscriptKey + FromStr,
    Pk::Hash: FromStr,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

impl<Pk: MiniscriptKey> Liftable<Pk> for Wsh<Pk>[src]

impl<Pk: Ord + MiniscriptKey> Ord for Wsh<Pk>[src]

impl<Pk: PartialEq + MiniscriptKey> PartialEq<Wsh<Pk>> for Wsh<Pk>[src]

impl<Pk: PartialOrd + MiniscriptKey> PartialOrd<Wsh<Pk>> for Wsh<Pk>[src]

impl<Pk: MiniscriptKey> StructuralEq for Wsh<Pk>[src]

impl<Pk: MiniscriptKey> StructuralPartialEq for Wsh<Pk>[src]

impl<P: MiniscriptKey, Q: MiniscriptKey> TranslatePk<P, Q> for Wsh<P>[src]

type Output = Wsh<Q>

The associated output type. This must be Self

Auto Trait Implementations

impl<Pk> RefUnwindSafe for Wsh<Pk> where
    Pk: RefUnwindSafe,
    <Pk as MiniscriptKey>::Hash: RefUnwindSafe

impl<Pk> Send for Wsh<Pk> where
    Pk: Send + Sync,
    <Pk as MiniscriptKey>::Hash: Send + Sync

impl<Pk> Sync for Wsh<Pk> where
    Pk: Send + Sync,
    <Pk as MiniscriptKey>::Hash: Send + Sync

impl<Pk> Unpin for Wsh<Pk> where
    Pk: Unpin,
    <Pk as MiniscriptKey>::Hash: Unpin

impl<Pk> UnwindSafe for Wsh<Pk> where
    Pk: RefUnwindSafe + UnwindSafe,
    <Pk as MiniscriptKey>::Hash: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<P, Q, T> TranslatePk1<P, Q> for T where
    P: MiniscriptKey,
    Q: MiniscriptKey<Hash = <P as MiniscriptKey>::Hash>,
    T: TranslatePk<P, Q>, 
[src]

impl<P, Q, T> TranslatePk2<P, Q> for T where
    P: MiniscriptKey<Hash = P>,
    Q: MiniscriptKey,
    T: TranslatePk<P, Q>, 
[src]

impl<P, Q, T> TranslatePk3<P, Q> for T where
    P: MiniscriptKey + ToPublicKey,
    Q: MiniscriptKey<Hash = Hash>,
    T: TranslatePk<P, Q>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.