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

Method cast

crates/core/src/error/ptr.rs:25–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 }
24
25 pub(crate) fn cast<U>(self) -> OwnedPtr<U> {
26 OwnedPtr::new(self.ptr.cast())
27 }
28
29 /// Make a raw copy of this pointer.
30 pub(crate) fn raw_copy(&self) -> Self {

Callers 2

shrink_to_fitMethod · 0.45

Calls 1

newFunction · 0.50

Tested by

no test coverage detected