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

Method get_atom

crates/environ/src/string_pool.rs:217–219  ·  view source on GitHub ↗

Get the `Atom` for the given string, if it has already been inserted into this pool.

(&self, s: &str)

Source from the content-addressed store, hash-verified

215 /// Get the `Atom` for the given string, if it has already been inserted
216 /// into this pool.
217 pub fn get_atom(&self, s: &str) -> Option<Atom> {
218 self.map.get(s).copied()
219 }
220
221 /// Does this pool contain the given `atom`?
222 #[inline]

Callers 10

get_exportMethod · 0.80
get_export_indexMethod · 0.80
get_exportMethod · 0.80
_getMethod · 0.80
lookup_vmexportFunction · 0.80
moduleMethod · 0.80
lookupMethod · 0.80
initializerMethod · 0.80

Calls 2

copiedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected