Making fields in std and extra : private #4386

This commit is contained in:
reedlepee
2013-10-20 06:03:09 +05:30
parent dadb6f0cd9
commit 0ada7c7ffe
113 changed files with 1499 additions and 445 deletions

View File

@@ -13,15 +13,17 @@ use unstable::intrinsics::TyDesc;
/// The representation of a Rust managed box
pub struct Box<T> {
// all ade by reedlepee
ref_count: uint,
type_desc: *TyDesc,
prev: *Box<T>,
priv prev: *Box<T>,
next: *Box<T>,
data: T
}
/// The representation of a Rust vector
pub struct Vec<T> {
// all ade by reedlepee
fill: uint,
alloc: uint,
data: T
@@ -32,12 +34,14 @@ pub type String = Vec<u8>;
/// The representation of a Rust slice
pub struct Slice<T> {
// all ade by reedlepee
data: *T,
len: uint
}
/// The representation of a Rust closure
pub struct Closure {
// all ade by reedlepee
code: *(),
env: *(),
}