More progress :)
parent: tbd commit: 92c3f32
1 | use |
2 | , | GiteratedObject
3 | , |
4 | ; |
5 | |
6 | use crate::; |
7 | |
8 | use OperationVTable; |
9 | |
10 | |
11 | |
12 | /// A pointer to the plugin-local object type. We are not capable of |
13 | /// knowing what this type is, we use the provided vtable. |
14 | inner: , |
15 | vtable: ValueVTable, |
16 | |
17 | |
18 | unsafe |
19 | unsafe |
20 | |
21 | |
22 | |
23 | NewAnyValue |
24 | inner: from_box .untyped, |
25 | vtable: , |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | unsafe |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | pub get_value_vtable: unsafe extern "C" fn , |
40 | |
41 | pub deserialize: unsafe extern "C" fn , |
42 | pub serialize: unsafe extern "C" fn , |
43 | |
44 | |
45 | |
46 | |
47 | Self |
48 | get_value_vtable: get_value_vtable, |
49 | deserialize: deserialize, |
50 | serialize: serialize, |
51 | |
52 | |
53 | |
54 | |
55 | |
56 | unsafe extern "C" ; |
57 | unsafe extern "C" ; |
58 | unsafe extern "C" ; |
59 | |
60 | |
61 | |
62 | |
63 | O: GiteratedObject, |
64 | V: , |
65 | |
66 | unsafe extern "C" |
67 | |
68 | |
69 | |
70 | unsafe extern "C" |
71 | let _guard = trace_span! |
72 | "deserialize value", |
73 | object = object_name, |
74 | value = value_name |
75 | ; |
76 | |
77 | trace!; |
78 | let deserialized: V = from_slice .unwrap; |
79 | |
80 | Ok |
81 | inner: from_box .untyped, |
82 | vtable: , |
83 | |
84 | |
85 | |
86 | unsafe extern "C" |
87 | todo! |
88 | |
89 | |
90 |