Add trait bounds to CurveBoundariesPayload

This commit is contained in:
Hanno Braun 2023-10-06 12:48:44 +02:00
parent 2ef4d4a6bb
commit 3e6bd8cd14

View File

@ -70,7 +70,7 @@ impl<T: CurveBoundariesPayload> Default for CurveBoundaries<T> {
}
/// A payload that can be used in [`CurveBoundaries`]
pub trait CurveBoundariesPayload {
pub trait CurveBoundariesPayload: Clone + Ord {
/// Reverse the orientation of the payload
fn reverse(&mut self);