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

Method get_singleton

cranelift/codegen/meta/src/cdsl/typevar.rs:520–524  ·  view source on GitHub ↗

Return the singleton type represented by self. Can only call on typesets containing 1 type.

(&self)

Source from the content-addressed store, hash-verified

518
519 /// Return the singleton type represented by self. Can only call on typesets containing 1 type.
520 fn get_singleton(&self) -> ValueType {
521 let mut types = self.concrete_types();
522 assert_eq!(types.len(), 1);
523 types.remove(0)
524 }
525}
526
527impl fmt::Debug for TypeSet {

Calls 2

concrete_typesMethod · 0.80
removeMethod · 0.45