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

Method set_catch_all

cranelift/srcgen/src/lib.rs:342–345  ·  view source on GitHub ↗
(&mut self, clause: String)

Source from the content-addressed store, hash-verified

340 }
341
342 fn set_catch_all(&mut self, clause: String) {
343 assert!(self.catch_all.is_none());
344 self.catch_all = Some(clause);
345 }
346
347 /// Add an arm that reads fields to the Match statement.
348 pub fn arm<T: Into<String>, S: Into<String>>(&mut self, name: T, fields: Vec<S>, body: T) {

Callers 1

arm_no_fieldsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected