pub trait Epocher:
Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn containing(&self, height: u64) -> Option<EpochInfo>;
fn first(&self, epoch: Epoch) -> Option<u64>;
fn last(&self, epoch: Epoch) -> Option<u64>;
}Expand description
Mechanism for determining epoch boundaries.
Required Methods§
Sourcefn containing(&self, height: u64) -> Option<EpochInfo>
fn containing(&self, height: u64) -> Option<EpochInfo>
Returns the information about an epoch containing the given block height.
Returns None if the height is not supported.
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.