Lines Matching refs:optional
39 std::optional<Extern> get_export(std::string_view name);
86 template <> struct WasmType<std::optional<ExternRef>> {
90 std::optional<ExternRef> &&ref) { in store()
98 const std::optional<ExternRef> &ref) { in store()
105 static std::optional<ExternRef> load(Store::Context cx, in load()
215 static std::optional<Trap> invoke(F f, Caller cx, wasmtime_val_raw_t *raw, in invoke()
228 static std::optional<Trap> invoke(F f, Caller cx, wasmtime_val_raw_t *raw, in invoke()
247 static std::optional<Trap> invoke(F f, Caller cx, wasmtime_val_raw_t *raw, in invoke()
267 static std::optional<Trap> invoke(F &f, Caller cx, wasmtime_val_raw_t *raw) { in invoke()
282 static std::optional<Trap> invoke(F &f, Caller cx, wasmtime_val_raw_t *raw) { in invoke()
636 inline Val::Val(std::optional<Func> func) : val{} { in Val()
645 inline Val::Val(Func func) : Val(std::optional(func)) {} in Val()
646 inline Val::Val(ExternRef ptr) : Val(std::optional(ptr)) {} in Val()
647 inline Val::Val(AnyRef ptr) : Val(std::optional(ptr)) {} in Val()
649 inline std::optional<Func> Val::funcref() const { in funcref()
660 template <> struct detail::WasmType<std::optional<Func>> {
667 const std::optional<Func> func) { in store()
675 static std::optional<Func> load(Store::Context cx, wasmtime_val_raw_t *p) { in load()