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

Method set_readonly

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

Set the `readonly` flag.

(&mut self)

Source from the content-addressed store, hash-verified

352
353 /// Set the `readonly` flag.
354 pub fn set_readonly(&mut self) {
355 *self = self.with_readonly();
356 }
357
358 /// Set the `readonly` flag, returning new flags.
359 pub const fn with_readonly(mut self) -> Self {

Callers

nothing calls this directly

Calls 1

with_readonlyMethod · 0.45

Tested by

no test coverage detected