Trait BlockRangeTestExtension

Source
pub trait BlockRangeTestExtension {
    // Required methods
    fn new(start: u64, end: u64) -> Self;
    fn try_add(&self, other: &BlockRange) -> StdResult<BlockRange>;
}
Expand description

Extension trait adding test utilities to BlockRange

Required Methods§

Source

fn new(start: u64, end: u64) -> Self

TEST ONLY - BlockRange factory

Source

fn try_add(&self, other: &BlockRange) -> StdResult<BlockRange>

TEST ONLY - Try to add two BlockRanges

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§