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

Method flatten

crates/core/src/alloc/boxed.rs:390–394  ·  view source on GitHub ↗

Flatten this error into its inner OOM.

(self)

Source from the content-addressed store, hash-verified

388impl BoxedSliceFromFallibleIterError<OutOfMemory> {
389 /// Flatten this error into its inner OOM.
390 pub fn flatten(self) -> OutOfMemory {
391 match self {
392 Self::IterError(oom) | Self::Oom(oom) => oom,
393 }
394 }
395}
396
397/// Create a `Box<[T]>` from the given iterator's `Result<T, E>` items.

Callers 5

find_llvm_toolFunction · 0.80
next_gprMethod · 0.80
next_fprMethod · 0.80
transform_dwarfFunction · 0.80
fp16Function · 0.80

Calls

no outgoing calls

Tested by 1

fp16Function · 0.64