toxcore-0.2.12: A Tox protocol implementation in Haskell
Safe HaskellNone
LanguageHaskell2010

Network.Tox.DHT.Distance

Synopsis

Documentation

newtype Distance Source #

Constructors

Distance Integer 

Instances

Instances details
Eq Distance Source # 
Instance details

Defined in Network.Tox.DHT.Distance

Ord Distance Source # 
Instance details

Defined in Network.Tox.DHT.Distance

Read Distance Source # 
Instance details

Defined in Network.Tox.DHT.Distance

Show Distance Source # 
Instance details

Defined in Network.Tox.DHT.Distance

Semigroup Distance Source # 
Instance details

Defined in Network.Tox.DHT.Distance

Monoid Distance Source # 
Instance details

Defined in Network.Tox.DHT.Distance

Arbitrary Distance Source # 
Instance details

Defined in Network.Tox.DHT.Distance

rebaseDistance :: PublicKey -> PublicKey -> Distance -> Distance Source #

rebaseDistance a b (xorDistance a c) == xorDistance b c