(&self)
| 396 | /// If this is a non-null `externref`, then `Some(Some(..))` is returned. |
| 397 | #[inline] |
| 398 | pub fn externref(&self) -> Option<Option<&Rooted<ExternRef>>> { |
| 399 | match self { |
| 400 | Val::ExternRef(None) => Some(None), |
| 401 | Val::ExternRef(Some(e)) => Some(Some(e)), |
| 402 | _ => None, |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | /// Returns the underlying `externref` value of this `Val`, panicking if it's the |
| 407 | /// wrong type. |