Home
last modified time | relevance | path

Searched refs:try_alloc (Results 1 – 5 of 5) sorted by relevance

/wasmtime-44.0.1/crates/core/src/error/
H A Dboxed.rs14 pub(crate) unsafe fn try_alloc(layout: Layout) -> Result<NonNull<u8>, OutOfMemory> { in try_alloc() function
37 let ptr = unsafe { try_alloc(layout)? }; in try_new_uninit_box()
/wasmtime-44.0.1/crates/core/src/
H A Dslab.rs328 pub fn try_alloc(&mut self, value: T) -> Result<Id, T> { in try_alloc() method
367 self.try_alloc(value) in alloc()
385 let id = self.try_alloc(value).ok().unwrap(); in alloc_slow()
H A Dalloc.rs34 unsafe fn try_alloc(layout: Layout) -> Result<NonNull<u8>, OutOfMemory> { in try_alloc() function
/wasmtime-44.0.1/crates/core/src/alloc/
H A Dboxed.rs1 use super::{TryClone, TryNew, TryVec, try_alloc};
24 let ptr = unsafe { try_alloc(layout)? }; in new_uninit_box()
103 let ptr = unsafe { try_alloc(layout)? }; in new_uninit_boxed_slice()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/store/
H A Dfunc_refs.rs99 .try_alloc(func_ref) in push()