pub trait DeriveExt: Derive {
// Provided method
fn derive_many(
&self,
start: u32,
count: u32,
) -> Result<Vec<DerivedAccount>, Self::Error> { ... }
}Expand description
Extension trait providing batch derivation for all Derive implementors.
This trait is automatically implemented for any type implementing Derive.
Import it to call derive_many on any deriver:
use kobe_primitives::{Derive, DeriveExt};
let accounts = d.derive_many(0, 5).unwrap();Provided Methods§
Sourcefn derive_many(
&self,
start: u32,
count: u32,
) -> Result<Vec<DerivedAccount>, Self::Error>
fn derive_many( &self, start: u32, count: u32, ) -> Result<Vec<DerivedAccount>, Self::Error>
Derive count accounts starting at index start.
§Errors
Returns DeriveError::Input if start + count overflows u32,
or propagates any derivation error.