Lines Matching refs:Ref
9 AnyRef, AsContext, AsContextMut, ExnRef, ExternRef, Func, HeapType, Ref, RefType,
94 pub fn new(mut store: impl AsContextMut, ty: TableType, init: Ref) -> Result<Table> { in new()
110 init: Ref, in new_async() argument
120 init: Ref, in _new() argument
169 pub fn get(&self, mut store: impl AsContextMut, index: u64) -> Option<Ref> { in get() argument
190 Ref::Extern(gc_ref.map(|r| ExternRef::from_cloned_gc_ref(&mut store, r))) in get()
193 Ref::Any(gc_ref.map(|r| AnyRef::from_cloned_gc_ref(&mut store, r))) in get()
196 Ref::Exn(gc_ref.map(|r| ExnRef::from_cloned_gc_ref(&mut store, r))) in get()
218 pub fn set(&self, mut store: impl AsContextMut, index: u64, val: Ref) -> Result<()> { in set()
222 pub(crate) fn set_(&self, store: &mut StoreOpaque, index: u64, val: Ref) -> Result<()> { in set_()
283 pub fn grow(&self, mut store: impl AsContextMut, delta: u64, init: Ref) -> Result<u64> { in grow()
289 async fn _grow<T>(&self, store: StoreContextMut<'_, T>, delta: u64, init: Ref) -> Result<u64> { in _grow()
355 init: Ref, in grow_async() argument
495 pub fn fill(&self, mut store: impl AsContextMut, dst: u64, val: Ref, len: u64) -> Result<()> { in fill() argument
503 val: Ref, in _fill() argument
606 impl Ref { implementation
616 (Ref::Func(None), HeapType::Func) => { in into_table_func()
620 (Ref::Func(Some(f)), HeapType::Func) => { in into_table_func()
641 (Ref::Extern(e), HeapType::Extern) => match e { in into_table_gc_ref()
649 (Ref::Any(a), HeapType::Any) => match a { in into_table_gc_ref()
657 (Ref::Exn(e), HeapType::Exn) => match e { in into_table_gc_ref()
716 fn _grow(table: &Table, store: &mut Store<()>, init: Ref) { in grow_is_send() argument