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

Method push

crates/wit-bindgen/src/config.rs:47–60  ·  view source on GitHub ↗

Adds a new rule to this configuration. Note that the order rules are added is significant as only the first matching rule is used for a function.

(&mut self, filter: FunctionFilter, flags: FunctionFlags)

Source from the content-addressed store, hash-verified

45 /// Note that the order rules are added is significant as only the first
46 /// matching rule is used for a function.
47 pub fn push(&mut self, filter: FunctionFilter, flags: FunctionFlags) {
48 match filter {
49 FunctionFilter::Name(filter) => {
50 self.rules.push(FunctionRule {
51 filter,
52 flags,
53 used: false,
54 });
55 }
56 FunctionFilter::Default => {
57 self.default = flags;
58 }
59 }
60 }
61
62 /// Returns the set of configuration flags associated with `func`.
63 ///

Callers 15

errno_from_rich_errorMethod · 0.45
document_equivalentFunction · 0.45
buildMethod · 0.45
boundMethod · 0.45
push_blockMethod · 0.45
finish_blockMethod · 0.45
emitMethod · 0.45
link_moduleFunction · 0.45
define_flagsFunction · 0.45
save_contextMethod · 0.45
assert_all_rules_usedMethod · 0.45
modes_ofMethod · 0.45

Calls

no outgoing calls

Tested by 1

document_equivalentFunction · 0.36