We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48499c7 commit 25bc6b6Copy full SHA for 25bc6b6
src/rt/rust_util.h
@@ -36,24 +36,6 @@ rust_vec
36
uint8_t data[0];
37
};
38
39
-struct
40
-rust_vec_box
41
-{
42
- rust_opaque_box header;
43
- rust_vec body;
44
-};
45
-
46
-template <typename T>
47
-inline size_t vec_size(size_t elems) {
48
- return sizeof(rust_vec_box) + sizeof(T) * elems;
49
-}
50
51
52
-inline T *
53
-vec_data(rust_vec *v) {
54
- return reinterpret_cast<T*>(v->data);
55
56
57
typedef rust_vec rust_str;
58
59
inline size_t get_box_size(size_t body_size, size_t body_align) {
0 commit comments