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

Method unchecked_oom

crates/core/src/error/error.rs:1605–1610  ·  view source on GitHub ↗

# Safety `self.is_oom()` must be true.

(&self)

Source from the content-addressed store, hash-verified

1603 ///
1604 /// `self.is_oom()` must be true.
1605 unsafe fn unchecked_oom(&self) -> &OutOfMemory {
1606 debug_assert!(self.is_oom());
1607 // Safety: `self.is_oom()` and `OutOfMemory` has the same representation
1608 // as `Self`.
1609 unsafe { mem::transmute(self) }
1610 }
1611
1612 /// # Safety
1613 ///

Callers 4

unpackMethod · 0.80
into_anyhowMethod · 0.80
downcastMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected