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

Method is_simple

crates/cranelift/src/debug/transform/expression.rs:236–242  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

234
235impl CompiledExpression {
236 pub fn is_simple(&self) -> bool {
237 if let [CompiledExpressionPart::Code(_)] = self.parts.as_slice() {
238 true
239 } else {
240 self.parts.is_empty()
241 }
242 }
243
244 pub fn build(&self) -> Option<write::Expression> {
245 if let [CompiledExpressionPart::Code(code)] = self.parts.as_slice() {

Callers 1

clone_die_attributesFunction · 0.80

Calls 2

as_sliceMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected