aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-07-28 14:11:15 -0700
committeriximeow <me@iximeow.net>2020-01-12 16:26:39 -0800
commitbc21fd00890ab34cd64b85e14b183ea4cd18ca88 (patch)
tree8d01063dc64521a2ff159da899d76d3641644aec /src
parentc4264230ba7d6b321ee07b033bee1b00b0f7f68c (diff)
addresses are Hash
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 50f7d59..c4b31aa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -49,6 +49,7 @@ pub trait Address where Self:
WrappingAdd + WrappingSub +
CheckedAdd + CheckedSub +
AddrParse +
+ Hash +
identities::One + identities::Zero {
fn to_linear(&self) -> usize;
@@ -63,6 +64,7 @@ pub trait Address where Self:
WrappingAdd + WrappingSub +
CheckedAdd + CheckedSub +
AddrParse +
+ Hash +
identities::One + identities::Zero {
fn to_linear(&self) -> usize;