Lines Matching refs:instance

32     linker.instance("a")?;  in instance_exports()
34 .instance("b")? in instance_exports()
36 let instance = linker.instantiate(&mut store, &component)?; in instance_exports() localVariable
39 instance in instance_exports()
43 let i = instance.get_export_index(&mut store, None, "r").unwrap(); in instance_exports()
44 assert!(instance.get_export(&mut store, Some(&i), "x").is_none()); in instance_exports()
45 instance.get_export(&mut store, None, "i").unwrap(); in instance_exports()
46 let i2 = instance.get_export_index(&mut store, None, "r2").unwrap(); in instance_exports()
47 let m = instance in instance_exports()
50 assert!(instance.get_func(&mut store, &m).is_none()); in instance_exports()
51 assert!(instance.get_module(&mut store, &m).is_some()); in instance_exports()
53 let i = instance.get_export_index(&mut store, None, "i").unwrap(); in instance_exports()
54 let i = instance in instance_exports()
57 let m = instance in instance_exports()
60 instance.get_module(&mut store, &m).unwrap(); in instance_exports()
85 let instance = linker.instantiate(&mut store, &component)?; in export_old_get_new() localVariable
87 instance.get_module(&mut store, "a:b/[email protected]").unwrap(); in export_old_get_new()
88 instance in export_old_get_new()
92 let i = instance in export_old_get_new()
95 instance.get_export(&mut store, Some(&i), "m").unwrap(); in export_old_get_new()
120 let instance = linker.instantiate(&mut store, &component)?; in export_new_get_old() localVariable
122 instance.get_module(&mut store, "a:b/[email protected]").unwrap(); in export_new_get_old()
123 instance in export_new_get_old()
127 let i = instance in export_new_get_old()
130 instance.get_export(&mut store, Some(&i), "m").unwrap(); in export_new_get_old()
157 let instance = Linker::new(&engine).instantiate(&mut store, &component)?; in export_missing_get_max() localVariable
170 let m = instance.get_module(&mut store, &m).unwrap(); in export_missing_get_max()
173 let m = instance.get_module(&mut store, name).unwrap(); in export_missing_get_max()
176 let m = instance.get_export_index(&mut store, None, name).unwrap(); in export_missing_get_max()
177 let m = instance.get_module(&mut store, &m).unwrap(); in export_missing_get_max()