(&self)
| 899 | /// Returns `Some(Some(_))` if this `Ref` is a non-null `extern` reference. |
| 900 | #[inline] |
| 901 | pub fn as_extern(&self) -> Option<Option<&Rooted<ExternRef>>> { |
| 902 | match self { |
| 903 | Ref::Extern(e) => Some(e.as_ref()), |
| 904 | _ => None, |
| 905 | } |
| 906 | } |
| 907 | |
| 908 | /// Get the underlying `extern` reference, panicking if this is a different |
| 909 | /// kind of reference. |