Create a new `ArrayRefPre` that is associated with the given store and type.
(mut store: impl AsContextMut, ty: ArrayType)
| 71 | /// Create a new `ArrayRefPre` that is associated with the given store |
| 72 | /// and type. |
| 73 | pub fn new(mut store: impl AsContextMut, ty: ArrayType) -> Self { |
| 74 | Self::_new(store.as_context_mut().0, ty) |
| 75 | } |
| 76 | |
| 77 | pub(crate) fn _new(store: &mut StoreOpaque, ty: ArrayType) -> Self { |
| 78 | store.insert_gc_host_alloc_type(ty.registered_type().clone()); |
nothing calls this directly
no test coverage detected