Returns the name, if present, associated with this function. Note that this requires that the `name` section is present in the original WebAssembly binary.
| 36 | /// Note that this requires that the `name` section is present in the original |
| 37 | /// WebAssembly binary. |
| 38 | std::optional<std::string_view> func_name() const { |
| 39 | const auto *name = wasmtime_frame_func_name(frame); |
| 40 | if (name != nullptr) { |
| 41 | return std::string_view(name->data, name->size); |
| 42 | } |
| 43 | return std::nullopt; |
| 44 | } |
| 45 | |
| 46 | /// Returns the name, if present, associated with this function's module. |
| 47 | /// |