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

Method names

crates/wasmtime/src/runtime/component/types.rs:477–482  ·  view source on GitHub ↗

Retrieve the names of the cases of this `enum` in declaration order.

(&self)

Source from the content-addressed store, hash-verified

475
476 /// Retrieve the names of the cases of this `enum` in declaration order.
477 pub fn names(&self) -> impl ExactSizeIterator<Item = &str> {
478 self.0.types[self.0.index]
479 .names
480 .iter()
481 .map(|name| name.deref())
482 }
483}
484
485impl PartialEq for Enum {

Calls 3

mapMethod · 0.45
iterMethod · 0.45
derefMethod · 0.45

Tested by

no test coverage detected