Downcast this `eqref` to an `arrayref`. If this `eqref` is an `arrayref`, then `Some(_)` is returned. If this `eqref` is not an `arrayref`, then `None` is returned. # Errors Return an error if this reference has been unrooted. # Panics Panics if this reference is associated with a different store.
(&self, store: impl AsContext)
| 441 | /// |
| 442 | /// Panics if this reference is associated with a different store. |
| 443 | pub fn as_array(&self, store: impl AsContext) -> Result<Option<Rooted<ArrayRef>>> { |
| 444 | self._as_array(store.as_context().0) |
| 445 | } |
| 446 | |
| 447 | pub(crate) fn _as_array(&self, store: &StoreOpaque) -> Result<Option<Rooted<ArrayRef>>> { |
| 448 | if self._is_array(store)? { |
no test coverage detected