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

Method contains

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

Source from the content-addressed store, hash-verified

221 /// Does this pool contain the given `atom`?
222 #[inline]
223 pub fn contains(&self, atom: Atom) -> bool {
224 atom.index() < self.strings.len()
225 }
226
227 /// Get the string associated with the given `atom`, if the pool contains
228 /// the atom.

Callers 2

kind_matchesFunction · 0.45
getMethod · 0.45

Calls 2

indexMethod · 0.45
lenMethod · 0.45

Tested by 1

kind_matchesFunction · 0.36