Fucking whatever there you go
parent: tbd commit: 57c2ca5
1 | use ; |
2 | |
3 | use crate FFIBox; |
4 | |
5 | |
6 | |
7 | /// A pointer to the plugin-local object type. We are not capable of |
8 | /// knowing what this type is, we use the provided vtable. |
9 | inner: , |
10 | vtable: ValueVTable, |
11 | |
12 | |
13 | |
14 | |
15 | NewAnyValue |
16 | inner: from_box .untyped, |
17 | vtable: , |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | pub deserialize: unsafe extern "C" fn , |
26 | pub serialize: unsafe extern "C" fn , |
27 | |
28 | |
29 | |
30 | |
31 | Self |
32 | deserialize: deserialize, |
33 | serialize: serialize, |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | unsafe extern "C" ; |
40 | unsafe extern "C" ; |
41 | |
42 | |
43 | |
44 | |
45 | O: GiteratedObject, |
46 | V: , |
47 | |
48 | unsafe extern "C" |
49 | let _guard = trace_span! |
50 | "deserialize value", |
51 | object = object_name, |
52 | value = value_name |
53 | ; |
54 | |
55 | trace!; |
56 | let deserialized: V = from_slice .unwrap; |
57 | |
58 | Ok |
59 | inner: from_box .untyped, |
60 | vtable: , |
61 | |
62 | |
63 | |
64 | unsafe extern "C" |
65 | todo! |
66 | |
67 | |
68 |