Skip to content

Commit 3cf1540

Browse files
Implement TotalOrder for totally ordered things (#449)
1 parent 2cc6bea commit 3cf1540

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

timely/src/progress/frontier.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Tracks minimal sets of mutually incomparable elements of a partial order.
22
33
use crate::progress::ChangeBatch;
4-
use crate::order::PartialOrder;
4+
use crate::order::{PartialOrder, TotalOrder};
55

66
/// A set of mutually incomparable elements.
77
///
@@ -227,6 +227,8 @@ impl<T: Clone> Clone for Antichain<T> {
227227
}
228228
}
229229

230+
impl<T: TotalOrder> TotalOrder for Antichain<T> { }
231+
230232
impl<T: PartialOrder> From<Vec<T>> for Antichain<T> {
231233
fn from(vec: Vec<T>) -> Self {
232234
// TODO: We could reuse `vec` with some care.

0 commit comments

Comments
 (0)