pub trait BlockHeightRangeBounds {
// Required method
fn to_inclusive(&self) -> Option<(BlockHeight, BlockHeight)>;
}
Expand description
Allows converting BlockHeight
ranges to inclusive tuples of bounds.
Required Methods§
Sourcefn to_inclusive(&self) -> Option<(BlockHeight, BlockHeight)>
fn to_inclusive(&self) -> Option<(BlockHeight, BlockHeight)>
Returns the range as a tuple of inclusive bounds.
If the range is empty, returns None
.