Skip to main content

EraBlockReader

Trait EraBlockReader 

Source
pub trait EraBlockReader<BH, BB> {
    // Required method
    fn blocks<M: EraMeta + ?Sized>(
        meta: &M,
    ) -> Result<impl Iterator<Item = Result<(BH, BB)>>>;
}
Expand description

Reads execution (header, body) pairs out of an ERA file.

Per-format seam of the import pipeline.

Required Methods§

Source

fn blocks<M: EraMeta + ?Sized>( meta: &M, ) -> Result<impl Iterator<Item = Result<(BH, BB)>>>

Opens the ERA file at meta and iterates its execution blocks.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<BH, BB> EraBlockReader<BH, BB> for Era1
where BH: FullBlockHeader + Value, BB: FullBlockBody<OmmerHeader = BH>,

Source§

impl<BH, BB> EraBlockReader<BH, BB> for Ere
where BH: FullBlockHeader + Value, BB: FullBlockBody<OmmerHeader = BH>,