Skip to main content

Crate atom_str

Crate atom_str 

Source

Structs§

Atom
An Atom is a singleton reference to a 'static lifetime string. The string lives until the end of the program, and its memory is essentially considered “leaked” during execution.
AtomKey

Functions§

hash_bytes
Hash bytes with XxHash64.
hash_bytes_ends
Hash with XxHash64 end_size bytes at the beginning of the buffer, and end_size bytes at the end of the buffer (in that order). If the buffer size is less than or equal to end_size + end_size, then the full buffer is hashed.
hash_bytes_head_tail
Hash with XxHash64 head_size bytes at the beginning of the buffer and tail_size bytes at the end of the buffer (in that order). if the length of the buffer is less than or equal to head_size + tail_size, then the full buffer is hashed.
hash_str
Hash string using XxHash64.
hash_str_ends
Hash with XxHash64 end_size bytes at the beginning of the string, and end_size bytes at the end of the string (in that order). If the string size is less than or equal to end_size + end_size, then the full string is hashed.
hash_str_head_tail
Hash with XxHash64 head_size bytes at the beginning of the string and tail_size bytes at the end of the string (in that order). if the length of the string is less than or equal to head_size + tail_size, then the full string is hashed.