MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / get

Method get

crates/environ/src/string_pool.rs:230–236  ·  view source on GitHub ↗
(&self, atom: Atom)

Source from the content-addressed store, hash-verified

228 /// the atom.
229 #[inline]
230 pub fn get(&self, atom: Atom) -> Option<&str> {
231 if self.contains(atom) {
232 Some(&self.strings[atom.index()])
233 } else {
234 None
235 }
236 }
237
238 /// Get the number of strings in this pool.
239 pub fn len(&self) -> usize {

Callers 15

parse_address_mapFunction · 0.45
lookup_file_posFunction · 0.45
iterate_address_mapFunction · 0.45
importMethod · 0.45
importMethod · 0.45
parseMethod · 0.45
frame_descriptorMethod · 0.45
find_program_pointMethod · 0.45
into_program_pointsMethod · 0.45

Calls 2

containsMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected