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

Method build

crates/wasmtime/src/runtime/types.rs:3353–3356  ·  view source on GitHub ↗

Get the underlying memory type that this builder has been building. # Errors Returns an error if the configured memory type is invalid, for example if the maximum size is smaller than the minimum size.

(&self)

Source from the content-addressed store, hash-verified

3351 /// Returns an error if the configured memory type is invalid, for example
3352 /// if the maximum size is smaller than the minimum size.
3353 pub fn build(&self) -> Result<MemoryType> {
3354 self.validate()?;
3355 Ok(MemoryType { ty: self.ty })
3356 }
3357}
3358
3359/// A descriptor for a WebAssembly memory type.

Callers 4

build_compilerMethod · 0.45
newMethod · 0.45
new64Method · 0.45
sharedMethod · 0.45

Calls 2

OkFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected