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

Method with_readonly

cranelift/codegen/src/ir/memflags.rs:359–362  ·  view source on GitHub ↗

Set the `readonly` flag, returning new flags.

(mut self)

Source from the content-addressed store, hash-verified

357
358 /// Set the `readonly` flag, returning new flags.
359 pub const fn with_readonly(mut self) -> Self {
360 self.flags = self.flags.with_readonly();
361 self
362 }
363 /// Get the trap code to report if this memory access traps.
364 ///
365 /// A `None` trap code indicates that this memory access does not trap.

Callers 15

set_by_nameMethod · 0.45
set_readonlyMethod · 0.45
compile_functionMethod · 0.45
call_builtinMethod · 0.45
get_global_locationMethod · 0.45
make_heapMethod · 0.45
make_tableMethod · 0.45
get_instance_and_tagMethod · 0.45
direct_callMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected