[][src]Struct miniscript::descriptor::Wpkh

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

A bare Wpkh descriptor at top level

Implementations

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

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

Create a new Wpkh descriptor

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

Get the inner key

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

Get the inner key

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

Get the descriptor without the checksum

Trait Implementations

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

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

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

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

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

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

impl<Pk> FromStr for Wpkh<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 Wpkh<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 Wpkh<Pk>[src]

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

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

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

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

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

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

type Output = Wpkh<Q>

The associated output type. This must be Self

Auto Trait Implementations

impl<Pk> RefUnwindSafe for Wpkh<Pk> where
    Pk: RefUnwindSafe
[src]

impl<Pk> Send for Wpkh<Pk> where
    Pk: Send
[src]

impl<Pk> Sync for Wpkh<Pk> where
    Pk: Sync
[src]

impl<Pk> Unpin for Wpkh<Pk> where
    Pk: Unpin
[src]

impl<Pk> UnwindSafe for Wpkh<Pk> where
    Pk: UnwindSafe
[src]

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.