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 f6d50d8 commit adc1427Copy full SHA for adc1427
src/libcore/sys.rs
@@ -1,7 +1,9 @@
1
//! Misc low level stuff
2
3
use cmp::{Eq, Ord};
4
+use libc::c_void;
5
6
+export FreeGlue;
7
export TypeDesc;
8
export Closure;
9
export get_type_desc;
@@ -12,10 +14,15 @@ export refcount;
12
14
export log_str;
13
15
export shape_eq, shape_lt, shape_le;
16
17
+type FreeGlue = fn(*TypeDesc, *c_void);
18
+
19
// Corresponds to runtime type_desc type
20
enum TypeDesc = {
21
size: uint,
- align: uint
22
+ align: uint,
23
+ take_glue: uint,
24
+ drop_glue: uint,
25
+ free_glue: uint
26
// Remaining fields not listed
27
};
28
0 commit comments