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