use crate::{ ArrayType, AsContext, AsContextMut, GcRefImpl, Result, Val, store::{StoreContextMut, StoreOpaque}, }; /// Support for `ArrayRefPre` disabled at compile time because the `gc` cargo /// feature was not enabled. pub enum ArrayRefPre {} /// Support for `arrayref` disabled at compile time because the `gc` cargo feature /// was not enabled. pub enum ArrayRef {} impl GcRefImpl for ArrayRef {} impl ArrayRef { pub fn ty(&self, _store: impl AsContext) -> Result { match *self {} } pub fn matches_ty(&self, _store: impl AsContext, _ty: &ArrayType) -> Result { match *self {} } pub(crate) fn _matches_ty(&self, _store: &StoreOpaque, _ty: &ArrayType) -> Result { match *self {} } pub fn len(&self, _store: impl AsContext) -> Result { match *self {} } pub fn elems<'a, T: 'static>( &self, _store: impl Into>, ) -> Result + 'a + '_> { match *self {} Ok([].into_iter()) } pub fn get(&self, _store: impl AsContextMut, _index: usize) -> Result { match *self {} } pub fn set(&self, _store: impl AsContextMut, _index: usize, _value: Val) -> Result<()> { match *self {} } }