1
Fork 0

libcollections: impl Send/Sync for Vec.

This commit is contained in:
Luqman Aden 2014-12-28 14:36:45 -05:00
parent 0e039ada55
commit 766a71922f

View file

@ -139,6 +139,9 @@ pub struct Vec<T> {
cap: uint,
}
unsafe impl<T: Send> Send for Vec<T> { }
unsafe impl<T: Sync> Sync for Vec<T> { }
/// A clone-on-write vector
pub type CowVec<'a, T> = Cow<'a, Vec<T>, [T]>;