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

Method trusted

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

Create a set of flags representing an access from a "trusted" address, meaning it's known to be aligned and non-trapping.

()

Source from the content-addressed store, hash-verified

177 /// Create a set of flags representing an access from a "trusted" address, meaning it's
178 /// known to be aligned and non-trapping.
179 pub const fn trusted() -> Self {
180 Self::new().with_notrap().with_aligned()
181 }
182
183 /// Reads the alias region that this memory operation works with.
184 pub fn alias_region(self) -> Option<AliasRegion> {

Callers

nothing calls this directly

Calls 3

newFunction · 0.50
with_alignedMethod · 0.45
with_notrapMethod · 0.45

Tested by

no test coverage detected