Lines Matching refs:ExternRef

3     AnyRef, ArrayRef, AsContext, AsContextMut, ExnRef, ExternRef, Func, HeapType, RefType, Rooted,
53 ExternRef(Option<Rooted<ExternRef>>), enumerator
116 Val::ExternRef(None) in null_extern_ref()
131 WasmHeapTopType::Extern => Val::ExternRef(None), in null_top()
182 Val::ExternRef(Some(_)) => ValType::EXTERNREF, in load_ty()
183 Val::ExternRef(None) => ValType::NULLFUNCREF, in load_ty()
224 (Val::ExternRef(e), ValType::Ref(ref_ty)) => { in _matches_ty()
236 | (Val::ExternRef(_), _) in _matches_ty()
275 Val::ExternRef(e) => Ok(ValRaw::externref(match e { in to_raw()
340 HeapType::Extern => ExternRef::_from_raw(store, raw.get_externref()).into(), in _from_raw()
378 (ExternRef(Option<&Rooted<ExternRef>>) extern_ref unwrap_extern_ref e.as_ref())
388 Val::ExternRef(e) => Some(Ref::Extern(e)), in ref_()
404 pub fn externref(&self) -> Option<Option<&Rooted<ExternRef>>> { in externref() argument
406 Val::ExternRef(None) => Some(None), in externref()
407 Val::ExternRef(Some(e)) => Some(Some(e)), in externref()
423 pub fn unwrap_externref(&self) -> Option<&Rooted<ExternRef>> { in unwrap_externref() argument
526 Val::ExternRef(Some(x)) => x.comes_from_same_store(store), in comes_from_same_store()
527 Val::ExternRef(None) => true, in comes_from_same_store()
578 Ref::Extern(e) => Val::ExternRef(e), in from()
586 impl From<Rooted<ExternRef>> for Val {
588 fn from(val: Rooted<ExternRef>) -> Val { in from()
589 Val::ExternRef(Some(val)) in from()
593 impl From<Option<Rooted<ExternRef>>> for Val {
595 fn from(val: Option<Rooted<ExternRef>>) -> Val { in from()
596 Val::ExternRef(val) in from()
757 Extern(Option<Rooted<ExternRef>>),
792 impl From<Rooted<ExternRef>> for Ref {
794 fn from(e: Rooted<ExternRef>) -> Ref { in from()
799 impl From<Option<Rooted<ExternRef>>> for Ref {
801 fn from(e: Option<Rooted<ExternRef>>) -> Ref { in from()
907 pub fn as_extern(&self) -> Option<Option<&Rooted<ExternRef>>> { in as_extern() argument
921 pub fn unwrap_extern(&self) -> Option<&Rooted<ExternRef>> { in unwrap_extern() argument