fnv32
pub fn fnv32(s &string) intPurpose
fnv32; returns int.
Parameters
s&string- source string (borrowed; caller keeps it; type &string)
Returns
int — a value of this type
API
#hash/fnvFNV-1 / FNV-1a 32/64.
fnv32pub fn fnv32(s &string) intfnv32; returns int.
s &stringint — a value of this type
fnv32apub fn fnv32a(s &string) intfnv32a; returns int.
s &stringint — a value of this type
fnv64pub fn fnv64(s &string) intfnv64; returns int.
s &stringint — a value of this type
fnv64apub fn fnv64a(s &string) intfnv64a; returns int.
s &stringint — a value of this type
struct Digestpub struct Digest {
pub h int
}Public struct `Digest`.
h intnew32pub fn new32() Digestnew32; returns Digest.
none
Digest — a value of this type
new32apub fn new32a() Digestnew32a; returns Digest.
none
Digest — a value of this type
new64pub fn new64() Digestnew64; returns Digest.
none
Digest — a value of this type
new64apub fn new64a() Digestnew64a; returns Digest.
none
Digest — a value of this type
(&mut Digest) writepub fn (d &mut Digest) write(p &string) intMethod on `&mut Digest`: write data and return the byte count.
d &mut Digestp &stringint — bytes written
(&Digest) sumpub fn (d &Digest) sum() intMethod on `&Digest`: compute a digest (often lowercase hex).
d &Digestint — a value of this type
(&Digest) sizepub fn (d &Digest) size() intMethod on `&Digest`: return the size.
d &Digestint — a value of this type
(&mut Digest) resetpub fn (d &mut Digest) reset()Method on `&mut Digest`: clear internal state so the value can be reused.
d &mut Digest