Skip to main content

DeriveExt

Trait DeriveExt 

Source
pub trait DeriveExt: Derive {
    // Provided method
    fn derive_many(
        &self,
        start: u32,
        count: u32,
    ) -> Result<Vec<Self::Account>, Self::Error> { ... }
}
Expand description

Extension trait providing batch derivation for every Derive implementor.

Blanket-implemented for any T: Derive, so importing the trait is the only requirement:

use kobe_primitives::{Derive, DeriveExt};
let accounts = d.derive_many(0, 5).unwrap();

Provided Methods§

Source

fn derive_many( &self, start: u32, count: u32, ) -> Result<Vec<Self::Account>, Self::Error>

Derive count accounts starting at index start.

§Errors

Returns DeriveError::Input if start + count overflows u32, or propagates any derivation error.

Implementors§

Source§

impl<T: Derive> DeriveExt for T