Trait dht::GenericId [] [src]

pub trait GenericId: Hash + PartialEq + Eq + Ord + Clone + Send + Sync + Debug {
    fn bitxor(&self, other: &Self) -> Self;
    fn is_zero(&self) -> bool;
    fn bits(&self) -> usize;
    fn gen(bit_size: usize) -> Self;
    fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>;
    fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>;
}

Generalization of num::BigUint, with hexadecimal encoding and decoding

Required Methods

num::bigint::RandBigInt::gen_biguint

Implementors