MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / _as_array

Method _as_array

crates/wasmtime/src/runtime/gc/enabled/eqref.rs:447–453  ·  view source on GitHub ↗
(&self, store: &StoreOpaque)

Source from the content-addressed store, hash-verified

445 }
446
447 pub(crate) fn _as_array(&self, store: &StoreOpaque) -> Result<Option<Rooted<ArrayRef>>> {
448 if self._is_array(store)? {
449 Ok(Some(Rooted::from_gc_root_index(self.inner)))
450 } else {
451 Ok(None)
452 }
453 }
454
455 /// Downcast this `eqref` to an `arrayref`, panicking if this `eqref` is
456 /// not an `arrayref`.

Callers 3

_matches_tyMethod · 0.45
as_arrayMethod · 0.45
_unwrap_arrayMethod · 0.45

Calls 2

OkFunction · 0.85
_is_arrayMethod · 0.45

Tested by

no test coverage detected