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

Method retain

crates/core/src/alloc/vec.rs:209–214  ·  view source on GitHub ↗

Same as [`std::vec::Vec::retain`].

(&mut self, f: F)

Source from the content-addressed store, hash-verified

207
208 /// Same as [`std::vec::Vec::retain`].
209 pub fn retain<F>(&mut self, f: F)
210 where
211 F: FnMut(&T) -> bool,
212 {
213 self.inner.retain(f);
214 }
215
216 /// Same as [`std::vec::Vec::retain_mut`].
217 pub fn retain_mut<F>(&mut self, f: F)

Callers 12

build_function_lookupFunction · 0.45
strategies_fromMethod · 0.45
sampling_threadFunction · 0.45
trim_liveness_flagsMethod · 0.45
poll_oneoff_with_retryFunction · 0.45
handleMethod · 0.45
find_testsFunction · 0.45
make_api_callsFunction · 0.45
arbitraryMethod · 0.45
fixupMethod · 0.45
fixupMethod · 0.45

Calls

no outgoing calls

Tested by 1

strategies_fromMethod · 0.36