Lines Matching refs:NonNull
13 use core::ptr::{self, NonNull};
58 fn from(ptr: Option<NonNull<VMFuncRef>>, lazy_init: bool) -> Self { in from()
62 None => NonNull::new(core::ptr::without_provenance_mut(FUNCREF_INIT_BIT)).unwrap(), in from()
72 fn into_funcref(self, lazy_init: bool) -> Option<Option<NonNull<VMFuncRef>>> { in into_funcref()
79 Some(ptr.and_then(|ptr| NonNull::new(ptr.as_ptr().map_addr(|a| a & FUNCREF_MASK)))) in into_funcref()
383 let data = SendSyncPtr::new(NonNull::slice_from_raw_parts( in new_static()
409 let data = SendSyncPtr::new(NonNull::slice_from_raw_parts( in new_static()
431 let data = SendSyncPtr::new(NonNull::slice_from_raw_parts( in new_static()
551 val: Option<NonNull<VMFuncRef>>, in fill_func()
762 pub fn get_func(&self, index: u64) -> Result<Option<NonNull<VMFuncRef>>, Trap> { in get_func()
775 ) -> Result<Option<Option<NonNull<VMFuncRef>>>, Trap> { in get_func_maybe_init()
808 pub fn set_func(&mut self, index: u64, elem: Option<NonNull<VMFuncRef>>) -> Result<(), Trap> { in set_func()
929 base: NonNull::new(elements.as_mut_ptr()).unwrap().cast().into(), in vmtable()
935 base: NonNull::new(elements.as_mut_ptr()).unwrap().cast().into(), in vmtable()
941 base: NonNull::new(elements.as_mut_ptr()).unwrap().cast().into(), in vmtable()
1142 data: SendSyncPtr::new(NonNull::from(&mut [])), in default()