Trait derive::Derive

source ·
pub trait Derive<D> {
    // Required methods
    fn default_keychain(&self) -> Keychain;
    fn keychains(&self) -> BTreeSet<Keychain>;
    fn derive(
        &self,
        keychain: impl Into<Keychain>,
        index: impl Into<NormalIndex>
    ) -> D;

    // Provided method
    fn derive_batch(
        &self,
        keychain: impl Into<Keychain>,
        from: impl Into<NormalIndex>,
        max_count: u8
    ) -> Vec<D> { ... }
}

Required Methods§

source

fn default_keychain(&self) -> Keychain

source

fn keychains(&self) -> BTreeSet<Keychain>

source

fn derive( &self, keychain: impl Into<Keychain>, index: impl Into<NormalIndex> ) -> D

Provided Methods§

source

fn derive_batch( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, max_count: u8 ) -> Vec<D>

Object Safety§

This trait is not object safe.

Implementors§