(&self)
| 869 | /// Is this a null reference? |
| 870 | #[inline] |
| 871 | pub fn is_null(&self) -> bool { |
| 872 | match self { |
| 873 | Ref::Any(None) | Ref::Extern(None) | Ref::Func(None) | Ref::Exn(None) => true, |
| 874 | Ref::Any(Some(_)) | Ref::Extern(Some(_)) | Ref::Func(Some(_)) | Ref::Exn(Some(_)) => { |
| 875 | false |
| 876 | } |
| 877 | } |
| 878 | } |
| 879 | |
| 880 | /// Is this a non-null reference? |
| 881 | #[inline] |
no outgoing calls