MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / char_to_value

Function char_to_value

src/conversions/roman_numerals.rs:183–194  ·  view source on GitHub ↗

Helper function to convert a Roman numeral character to its integer value. # Arguments `ch` - A Roman numeral character (I, V, X, L, C, D, M) # Returns The integer value of the character # Panics Panics if an invalid character is provided (this should be caught by validation)

(ch: char)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

roman_to_intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected