aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-04-27 18:10:02 -0700
committerPatrick Walton <[email protected]>2011-04-27 18:14:56 -0700
commit180a389832ea505df5a05620a35fcfc4ba311936 (patch)
treef021ab47aee5cee988b7d8ec0b523dc4dc84a37e /src/lib
parentrt: Add str_vec to the def file. Puts out burning tinderbox. (diff)
downloadrust-180a389832ea505df5a05620a35fcfc4ba311936.tar.xz
rust-180a389832ea505df5a05620a35fcfc4ba311936.zip
stdlib/rt: Add an unsafe function to cast immutable vectors to mutable ones
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/_vec.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/_vec.rs b/src/lib/_vec.rs
index cc8fabca..ab222be9 100644
--- a/src/lib/_vec.rs
+++ b/src/lib/_vec.rs
@@ -31,6 +31,8 @@ native "rust" mod rustrt {
fn vec_print_debug_info[T](vec[T] v);
fn vec_from_vbuf[T](vbuf v, uint n_elts) -> vec[T];
+
+ fn unsafe_vec_to_mut[T](vec[T] v) -> vec[mutable T];
}
fn alloc[T](uint n_elts) -> vec[T] {