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

Class Kwargs

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

Trailing kwargs slot. `None` when no kwargs were passed (host sends handle 0); `Some(dict)` otherwise.

Source from the content-addressed store, hash-verified

196
197/// Trailing kwargs slot. `None` when no kwargs were passed (host sends handle 0); `Some(dict)` otherwise.
198pub struct Kwargs(Option<Handle>);
199
200impl Kwargs {
201 /// Decode `name` from kwargs as primitive `T`. Returns `Ok(None)` if absent or kwargs slot empty; `Ok(Some(_))` on hit; `Err` on decode failure. Use `get_handle` for non-primitive values (callables, tuples, lists).

Callers 1

from_handleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected