bpstd

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§