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

Method number

cranelift/codegen/meta/src/cdsl/types.rs:62–68  ·  view source on GitHub ↗

Find the unique number associated with this type.

(&self)

Source from the content-addressed store, hash-verified

60
61 /// Find the unique number associated with this type.
62 pub fn number(&self) -> u16 {
63 match *self {
64 ValueType::Lane(l) => l.number(),
65 ValueType::Vector(ref v) => v.number(),
66 ValueType::DynamicVector(ref v) => v.number(),
67 }
68 }
69
70 /// Return the name of this type for generated Rust source files.
71 pub fn rust_name(&self) -> String {

Callers 1

emit_typeFunction · 0.80

Calls 4

fromFunction · 0.85
leading_zerosMethod · 0.80
minimum_lane_countMethod · 0.80
lane_countMethod · 0.45

Tested by

no test coverage detected