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

Method enum_cases

crates/wasmtime/src/runtime/wave/component.rs:78–83  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

76 }
77
78 fn enum_cases(&self) -> Box<dyn Iterator<Item = Cow<'_, str>> + '_> {
79 let Self::Enum(enum_) = self else {
80 return Box::new(std::iter::empty());
81 };
82 Box::new(enum_.names().map(Into::into))
83 }
84
85 fn option_some_type(&self) -> Option<Self> {
86 maybe_unwrap_type!(self, Self::Option).map(|o| o.ty())

Callers

nothing calls this directly

Calls 4

namesMethod · 0.80
newFunction · 0.50
emptyFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected