derive

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>,
    ) -> impl Iterator<Item = D>;

    // Provided method
    fn derive_range(
        &self,
        keychain: impl Into<Keychain>,
        from: impl Into<NormalIndex>,
        to: impl Into<NormalIndex>,
    ) -> impl Iterator<Item = 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>, ) -> impl Iterator<Item = D>

Provided Methods§

Source

fn derive_range( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, to: impl Into<NormalIndex>, ) -> impl Iterator<Item = 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§