Debian Codegraph @

/

debian rust-memo-map 0.3.1-1debian librust-memo-map-dev debian librust-memo-map+default-dev debian librust-memo-map-0-dev debian librust-memo-map-0+default-dev debian librust-memo-map-0.3-dev debian librust-memo-map-0.3+default-dev debian librust-memo-map-0.3.1-dev debian librust-memo-map-0.3.1+default-dev cargo memo-map 0.3.1 debianjsonmakemakefilemarkdownrustrust-c-abishelltomlyaml 21 files · 198 symbols
View dependency graph

Depends on

README (full)

memo-map

Build Status Crates.io License rustc 1.41.0 Documentation

A concurrent insert only hash map.

This crate implements a “memo map” which is in many ways similar to a HashMap with some crucial differences:

  • Unlike a regular hash map, a memo map is thread safe and synchronized.
  • Adding or retrieving keys works through a shared reference, removing only through a mutable reference.
  • Retrieving a value from a memo map returns a plain old reference.
use memo_map::MemoMap;

let memo = MemoMap::new();
let one = memo.get_or_insert(&1, || "one".to_string());
let one2 = memo.get_or_insert(&1, || "not one".to_string());
assert_eq!(one, "one");
assert_eq!(one2, "one");

License and Links

dir .github/
dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file CHANGELOG.md
file Cargo.toml
file Cargo.toml.orig
file LICENSE
file Makefile
file README.md