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

Method enums

cranelift/codegen/src/settings.rs:340–344  ·  view source on GitHub ↗

Get enumerators corresponding to a `Details::Enum`.

(&self, last: u8, enumerators: u16)

Source from the content-addressed store, hash-verified

338 impl Template {
339 /// Get enumerators corresponding to a `Details::Enum`.
340 pub fn enums(&self, last: u8, enumerators: u16) -> &[&'static str] {
341 let from = enumerators as usize;
342 let len = usize::from(last) + 1;
343 &self.enumerators[from..from + len]
344 }
345
346 /// Format a setting value as a TOML string. This is mostly for use by the generated
347 /// `Display` implementation.

Callers 3

iterMethod · 0.45
setMethod · 0.45
format_toml_valueMethod · 0.45

Calls 1

fromFunction · 0.85

Tested by

no test coverage detected