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

Method unchecked_oom_mut

crates/core/src/error/error.rs:1615–1620  ·  view source on GitHub ↗

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

(&mut self)

Source from the content-addressed store, hash-verified

1613 ///
1614 /// `self.is_oom()` must be true.
1615 unsafe fn unchecked_oom_mut(&mut self) -> &mut OutOfMemory {
1616 debug_assert!(self.is_oom());
1617 // Safety: `self.is_oom()` and `OutOfMemory` has the same representation
1618 // as `Self`.
1619 unsafe { mem::transmute(self) }
1620 }
1621
1622 /// # Safety
1623 ///

Callers 1

unpack_mutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected