pub trait BlockNumberConversion<Old, New> {
// Required method
fn convert_block_number(block_number: Old) -> New;
}
Expand description
Convert from one to another block number provider/type.
Required Methods§
Sourcefn convert_block_number(block_number: Old) -> New
fn convert_block_number(block_number: Old) -> New
Convert the old
block number type to the new block number type.
Any changes in the rate of blocks need to be taken into account.
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.