Skip to content

Commit c3db4ae

Browse files
authored
Merge pull request #71 from earthstar-project/relative-encodings
Relative encodings
2 parents b95c32a + 58922f9 commit c3db4ae

15 files changed

+1486
-1139
lines changed

data-model/src/grouping/area.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ impl<S: SubspaceId> AreaSubspace<S> {
4444
}
4545
}
4646

47+
impl<S: SubspaceId> PartialEq<S> for AreaSubspace<S> {
48+
fn eq(&self, other: &S) -> bool {
49+
match self {
50+
AreaSubspace::Any => false,
51+
AreaSubspace::Id(s) => s == other,
52+
}
53+
}
54+
}
55+
4756
#[cfg(feature = "dev")]
4857
impl<'a, S> Arbitrary<'a> for AreaSubspace<S>
4958
where

0 commit comments

Comments
 (0)