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

Method find_by_nid

crates/stdlib/src/ssl/oid.rs:112–114  ·  view source on GitHub ↗
(&self, nid: i32)

Source from the content-addressed store, hash-verified

110 }
111
112 pub fn find_by_nid(&self, nid: i32) -> Option<&OidEntry> {
113 self.nid_to_idx.get(&nid).map(|&idx| &self.entries[idx])
114 }
115
116 pub fn find_by_oid_string(&self, oid_str: &str) -> Option<&OidEntry> {
117 self.oid_str_to_idx

Callers 1

find_by_nidFunction · 0.80

Calls 2

mapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected