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

Method as_result

cranelift/codegen/src/verifier/mod.rs:206–208  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

204 /// and non-fatal otherwise.
205 #[inline]
206 pub fn as_result(&self) -> VerifierStepResult {
207 if self.is_empty() { Ok(()) } else { Err(()) }
208 }
209
210 /// Report an error, adding it to the list of errors.
211 pub fn report(&mut self, error: impl Into<VerifierError>) {

Callers 3

check_entry_not_coldMethod · 0.80
cfg_integrityMethod · 0.80

Calls 2

OkFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected