Library guide · API index and notation
This page is generated from the bundled library in this checkout. Signatures and adjacent source comments are reproduced below; the linked guide explains usage, storage, failures, and platform support.
import "std/checksum"
Names used in signatures
Unqualified names denote this package’s types (including other source files in the same package), language built-ins, or generic parameters such as T. Qualified names use the import aliases below. These aliases belong to the library source; import a dependency yourself to use its alias in your program.
This package has no source imports.
Crc32
Struct · Source
Checksums detect accidental corruption; neither authenticates data.
pub struct Crc32 {
// Private implementation fields omitted.
}
Crc32.new
Function · Source
pub fn new() -> Crc32
Crc32.update
Function · Source
pub fn update(&mut self, data: &[u8])
Crc32.finish
Function · Source
pub fn finish(&self) -> u32
Crc32.reset
Function · Source
pub fn reset(&mut self)
Adler32
Struct · Source
pub struct Adler32 {
// Private implementation fields omitted.
}
Adler32.new
Function · Source
pub fn new() -> Adler32
Adler32.update
Function · Source
pub fn update(&mut self, data: &[u8])
Adler32.finish
Function · Source
pub fn finish(&self) -> u32
Adler32.reset
Function · Source
pub fn reset(&mut self)
crc32
Function · Source
pub fn crc32(data: &[u8]) -> u32
adler32
Function · Source
pub fn adler32(data: &[u8]) -> u32