Struct wallet::descriptor::Generator[][src]

pub struct Generator {
    pub template: Template,
    pub variants: Variants,
}

Fields

template: Templatevariants: Variants

Implementations

impl Generator[src]

pub fn descriptors(
    &self,
    index: UnhardenedIndex
) -> Result<HashMap<Category, Expanded>, Error>
[src]

pub fn pubkey_scripts(
    &self,
    index: UnhardenedIndex
) -> Result<HashMap<Category, Script>, Error>
[src]

Trait Implementations

impl Clone for Generator[src]

impl Debug for Generator[src]

impl Display for Generator[src]

impl Eq for Generator[src]

impl FromStr for Generator[src]

type Err = GeneratorParseError

The associated error which can be returned from parsing.

impl Hash for Generator[src]

impl Ord for Generator[src]

impl PartialEq<Generator> for Generator[src]

impl PartialOrd<Generator> for Generator[src]

impl StrictDecode for Generator[src]

impl StrictEncode for Generator[src]

impl StructuralEq for Generator[src]

impl StructuralPartialEq for Generator[src]

Auto Trait Implementations

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<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.