MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / borrow

Method borrow

wasm-pdk/src/lib.rs:170–170  ·  view source on GitHub ↗

Wrap an argv handle without releasing on drop (host owns it for the call).

(raw: u32)

Source from the content-addressed store, hash-verified

168impl Handle {
169 /// Wrap an argv handle without releasing on drop (host owns it for the call).
170 pub fn borrow(raw: u32) -> Self { Self { raw, owned: false } }
171 /// Take ownership of a raw handle; `Drop` will release the refcount.
172 pub fn from_raw(raw: u32) -> Self { Self { raw, owned: true } }
173 /// Surrender the handle without running `Drop` (used when writing to `*out`).

Callers 15

parse_or_get_cachedMethod · 0.80
truthyMethod · 0.80
clone_set_itemsMethod · 0.80
display_dMethod · 0.80
lt_vals_dMethod · 0.80
containsMethod · 0.80
add_valsMethod · 0.80
mul_valsMethod · 0.80
mapping_to_kw_pairsMethod · 0.80
make_iter_frameMethod · 0.80
exec_unpack_seqMethod · 0.80

Calls

no outgoing calls

Tested by 3

fetch_bytesMethod · 0.64
resolve_bareMethod · 0.64
resolve_canonicalMethod · 0.64