File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ use crate::{
11
11
/// A relation represents a fixed set of key-value pairs. In many places in a
12
12
/// Datalog computation we want to be sure that certain relations are not able
13
13
/// to vary (for example, in antijoins).
14
- #[ derive( Clone ) ]
15
- pub struct Relation < Tuple : Ord > {
14
+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
15
+ pub struct Relation < Tuple > {
16
16
/// Sorted list of distinct tuples.
17
17
pub elements : Vec < Tuple > ,
18
18
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub(crate) trait VariableTrait {
36
36
/// of performance. Such a variable cannot be relied on to terminate iterative computation,
37
37
/// and it is important that any cycle of derivations have at least one de-duplicating
38
38
/// variable on it.
39
- pub struct Variable < Tuple : Ord > {
39
+ pub struct Variable < Tuple > {
40
40
/// Should the variable be maintained distinctly.
41
41
pub ( crate ) distinct : bool ,
42
42
/// A useful name for the variable.
@@ -251,7 +251,7 @@ impl<Tuple: Ord> Variable<Tuple> {
251
251
}
252
252
}
253
253
254
- impl < Tuple : Ord > Clone for Variable < Tuple > {
254
+ impl < Tuple > Clone for Variable < Tuple > {
255
255
fn clone ( & self ) -> Self {
256
256
Variable {
257
257
distinct : self . distinct ,
You can’t perform that action at this time.
0 commit comments