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

Method primitive

tests/all/component_model.rs:179–186  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

177 }
178
179 fn primitive(&self) -> &'static str {
180 match self {
181 Self::S8 | Self::U8 | Self::S16 | Self::U16 | Self::I32 => "i32",
182 Self::I64 => "i64",
183 Self::F32 => "f32",
184 Self::F64 => "f64",
185 }
186 }
187}
188
189#[derive(Copy, Clone, PartialEq, Eq)]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected