Trait bpstd::Derive

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

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

Required Methods§

source

fn keychains(&self) -> Range<u8>

source

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

Provided Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§