Lines Matching refs:Option
50 FuncRef(Option<Func>),
53 ExternRef(Option<Rooted<ExternRef>>),
56 AnyRef(Option<Rooted<AnyRef>>),
59 ExnRef(Option<Rooted<ExnRef>>),
65 ContRef(Option<ContRef>),
73 pub fn $get(&self) -> Option<$ty> {
142 pub fn default_for_ty(ty: &ValType) -> Option<Val> { in default_for_ty()
377 (FuncRef(Option<&Func>) func_ref unwrap_func_ref e.as_ref())
378 (ExternRef(Option<&Rooted<ExternRef>>) extern_ref unwrap_extern_ref e.as_ref())
379 (AnyRef(Option<&Rooted<AnyRef>>) any_ref unwrap_any_ref e.as_ref())
385 pub fn ref_(self) -> Option<Ref> { in ref_()
404 pub fn externref(&self) -> Option<Option<&Rooted<ExternRef>>> { in externref()
423 pub fn unwrap_externref(&self) -> Option<&Rooted<ExternRef>> { in unwrap_externref()
435 pub fn anyref(&self) -> Option<Option<&Rooted<AnyRef>>> { in anyref()
454 pub fn unwrap_anyref(&self) -> Option<&Rooted<AnyRef>> { in unwrap_anyref()
466 pub fn exnref(&self) -> Option<Option<&Rooted<ExnRef>>> { in exnref()
485 pub fn unwrap_exnref(&self) -> Option<&Rooted<ExnRef>> { in unwrap_exnref()
497 pub fn funcref(&self) -> Option<Option<&Func>> { in funcref()
516 pub fn unwrap_funcref(&self) -> Option<&Func> { in unwrap_funcref()
593 impl From<Option<Rooted<ExternRef>>> for Val {
595 fn from(val: Option<Rooted<ExternRef>>) -> Val { in from()
607 impl From<Option<Rooted<AnyRef>>> for Val {
609 fn from(val: Option<Rooted<AnyRef>>) -> Val { in from()
621 impl From<Option<Rooted<StructRef>>> for Val {
623 fn from(val: Option<Rooted<StructRef>>) -> Val { in from()
635 impl From<Option<Rooted<ArrayRef>>> for Val {
637 fn from(val: Option<Rooted<ArrayRef>>) -> Val { in from()
649 impl From<Option<Rooted<ExnRef>>> for Val {
651 fn from(val: Option<Rooted<ExnRef>>) -> Val { in from()
663 impl From<Option<Func>> for Val {
665 fn from(val: Option<Func>) -> Val { in from()
746 Func(Option<Func>),
757 Extern(Option<Rooted<ExternRef>>),
767 Any(Option<Rooted<AnyRef>>),
775 Exn(Option<Rooted<ExnRef>>),
785 impl From<Option<Func>> for Ref {
787 fn from(f: Option<Func>) -> Ref { in from()
799 impl From<Option<Rooted<ExternRef>>> for Ref {
801 fn from(e: Option<Rooted<ExternRef>>) -> Ref { in from()
813 impl From<Option<Rooted<AnyRef>>> for Ref {
815 fn from(e: Option<Rooted<AnyRef>>) -> Ref { in from()
827 impl From<Option<Rooted<StructRef>>> for Ref {
829 fn from(e: Option<Rooted<StructRef>>) -> Ref { in from()
841 impl From<Option<Rooted<ArrayRef>>> for Ref {
843 fn from(e: Option<Rooted<ArrayRef>>) -> Ref { in from()
855 impl From<Option<Rooted<ExnRef>>> for Ref {
857 fn from(e: Option<Rooted<ExnRef>>) -> Ref { in from()
907 pub fn as_extern(&self) -> Option<Option<&Rooted<ExternRef>>> { in as_extern()
921 pub fn unwrap_extern(&self) -> Option<&Rooted<ExternRef>> { in unwrap_extern()
941 pub fn as_any(&self) -> Option<Option<&Rooted<AnyRef>>> { in as_any()
955 pub fn unwrap_any(&self) -> Option<&Rooted<AnyRef>> { in unwrap_any()
974 pub fn as_exn(&self) -> Option<Option<&Rooted<ExnRef>>> { in as_exn()
988 pub fn unwrap_exn(&self) -> Option<&Rooted<ExnRef>> { in unwrap_exn()
1007 pub fn as_func(&self) -> Option<Option<&Func>> { in as_func()
1021 pub fn unwrap_func(&self) -> Option<&Func> { in unwrap_func()