MCPcopy Index your code
hub / github.com/RustPython/RustPython / find_by_oid_string

Method find_by_oid_string

crates/stdlib/src/ssl/oid.rs:116–120  ·  view source on GitHub ↗
(&self, oid_str: &str)

Source from the content-addressed store, hash-verified

114 }
115
116 pub fn find_by_oid_string(&self, oid_str: &str) -> Option<&OidEntry> {
117 self.oid_str_to_idx
118 .get(oid_str)
119 .map(|&idx| &self.entries[idx])
120 }
121
122 pub fn find_by_name(&self, name: &str) -> Option<&OidEntry> {
123 // Try short name first (exact match)

Callers 1

find_by_oid_stringFunction · 0.80

Calls 2

mapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected