MCPcopy Index your code
hub / github.com/TheAlgorithms/Rust / check_mapping

Function check_mapping

src/string/isomorphism.rs:46–54  ·  view source on GitHub ↗

Checks the mapping between two characters and updates the map. # Arguments `map` - The HashMap to store the mapping. `key` - The key character. `value` - The value character. # Returns `true` if the mapping is consistent, `false` otherwise.

(map: &mut HashMap<char, char>, key: char, value: char)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

is_isomorphicFunction · 0.85

Calls 2

getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected