Lines Matching refs:StructRef

10     StructRef::new(&mut store, &pre, &[])?;  in struct_new_empty()
26 StructRef::new( in struct_new_with_fields()
51 assert!(StructRef::new(&mut store, &pre, &[anyref.into()]).is_err()); in struct_new_unrooted_field()
74 let _ = StructRef::new(&mut store, &pre, &[anyref.into()]); in struct_new_cross_store_field()
87 let _ = StructRef::new(&mut store, &pre, &[]); in struct_new_cross_store_pre()
99 let s0 = StructRef::new(&mut store, &pre, &[Val::I32(42)])?; in anyref_as_struct()
125 let s = StructRef::new(&mut store, &pre, &[Val::I32(1234)])?; in struct_field_simple()
142 let s = StructRef::new(&mut store, &pre, &[Val::I32(1234)])?; in struct_field_out_of_bounds()
160 StructRef::new(&mut scope, &pre, &[Val::I32(1234)])? in struct_field_on_unrooted()
178 let s = StructRef::new(&mut store, &pre, &[Val::I32(1234)])?; in struct_set_field_simple()
196 let s = StructRef::new(&mut store, &pre, &[Val::I32(1234)])?; in struct_set_field_out_of_bounds()
214 StructRef::new(&mut scope, &pre, &[Val::I32(1234)])? in struct_set_field_on_unrooted()
232 let s = StructRef::new(&mut store, &pre, &[Val::null_any_ref()])?; in struct_set_field_with_unrooted()
253 let s = StructRef::new(&mut store, &pre, &[Val::null_extern_ref()])?; in struct_set_field_cross_store_value()
273 let s = StructRef::new(&mut store, &pre, &[Val::I32(1234)])?; in struct_set_field_immutable()
289 let s = StructRef::new(&mut store, &pre, &[Val::I32(1234)])?; in struct_set_field_wrong_type()
299 let s = StructRef::new(&mut store, &pre, &[])?; in struct_ty()
311 StructRef::new(&mut scope, &pre, &[])? in struct_ty_unrooted()
323 let s = StructRef::new(&mut store, &pre, &[])?; in struct_fields_empty()
341 let s = StructRef::new(&mut store, &pre, &[Val::I32(36), Val::null_any_ref()])?; in struct_fields_non_empty()
357 StructRef::new(&mut scope, &pre, &[])? in struct_fields_unrooted()
402 let s = StructRef::new(&mut store, &pre, &[Val::I32(42)])?; in passing_structs_through_wasm_with_untyped_calls()
440 |mut caller: Caller<()>, s: Rooted<StructRef>| -> Result<Rooted<StructRef>> { in passing_structs_through_wasm_with_typed_calls()
447 let run = instance.get_typed_func::<Rooted<StructRef>, Rooted<StructRef>>(&mut store, "run")?; in passing_structs_through_wasm_with_typed_calls()
450 let s = StructRef::new(&mut store, &pre, &[Val::I32(42)])?; in passing_structs_through_wasm_with_typed_calls()
486 let s0 = StructRef::new(&mut store, &pre, &[Val::I32(42)])?; in host_sets_struct_global()
497 let f = instance.get_typed_func::<(), Option<Rooted<StructRef>>>(&mut store, "f")?; in host_sets_struct_global()
532 let s0 = StructRef::new(&mut store, &pre, &[Val::I32(42)])?; in wasm_sets_struct_global()
547 let f = instance.get_typed_func::<(), Option<Rooted<StructRef>>>(&mut store, "get")?; in wasm_sets_struct_global()
582 let s0 = StructRef::new(&mut store, &pre, &[Val::I32(42)])?; in host_sets_struct_in_table()
593 let f = instance.get_typed_func::<(), Option<Rooted<StructRef>>>(&mut store, "f")?; in host_sets_struct_in_table()
630 let s0 = StructRef::new(&mut store, &pre, &[Val::I32(42)])?; in wasm_sets_struct_in_table()
645 let f = instance.get_typed_func::<(), Option<Rooted<StructRef>>>(&mut store, "get")?; in wasm_sets_struct_in_table()
689 let s0 = StructRef::new(&mut store, &pre, &[Val::I32(42)])?; in instantiate_with_struct_global()
715 let s = StructRef::new(&mut store, &pre, &[f0.into()])?; in can_put_funcrefs_in_structs()