Lines Matching refs:ManuallyDrop
6 use std::mem::{ManuallyDrop, MaybeUninit};
149 pub anyref: ManuallyDrop<wasmtime_anyref_t>,
150 pub externref: ManuallyDrop<wasmtime_externref_t>,
151 pub exnref: ManuallyDrop<wasmtime_exnref_t>,
167 let _ = ManuallyDrop::take(&mut self.of.anyref); in drop()
170 let _ = ManuallyDrop::take(&mut self.of.externref); in drop()
173 let _ = ManuallyDrop::take(&mut self.of.exnref); in drop()
262 anyref: ManuallyDrop::new(a.and_then(|a| a.to_owned_rooted(cx).ok()).into()), in from_val_unscoped()
268 externref: ManuallyDrop::new(e.and_then(|e| e.to_owned_rooted(cx).ok()).into()), in from_val_unscoped()
280 exnref: ManuallyDrop::new(e.and_then(|e| e.to_owned_rooted(cx).ok()).into()), in from_val_unscoped()
331 pub unsafe extern "C" fn wasmtime_val_unroot(val: &mut ManuallyDrop<wasmtime_val_t>) { in wasmtime_val_unroot()
332 ManuallyDrop::drop(val); in wasmtime_val_unroot()
342 anyref: ManuallyDrop::new(src.of.anyref.as_wasmtime().into()), in wasmtime_val_clone()
345 externref: ManuallyDrop::new(src.of.externref.as_wasmtime().into()), in wasmtime_val_clone()
348 exnref: ManuallyDrop::new(src.of.exnref.as_wasmtime().into()), in wasmtime_val_clone()