Export VecUnboxedRepr from vec so a test case can use it

This commit is contained in:
Tim Chevalier
2012-10-11 17:58:45 -07:00
parent 3c1ff31f4a
commit 945d57a6ff
3 changed files with 11 additions and 10 deletions

View File

@@ -1671,6 +1671,13 @@ pub unsafe fn from_buf<T>(ptr: *T, elts: uint) -> ~[T] {
raw::from_buf_raw(ptr, elts)
}
/// The internal 'unboxed' representation of a vector
pub struct UnboxedVecRepr {
mut fill: uint,
mut alloc: uint,
data: u8
}
/// Unsafe operations
mod raw {
@@ -1680,13 +1687,6 @@ mod raw {
unboxed: UnboxedVecRepr
}
/// The internal 'unboxed' representation of a vector
pub struct UnboxedVecRepr {
mut fill: uint,
mut alloc: uint,
data: u8
}
pub type SliceRepr = {
mut data: *u8,
mut len: uint