libcollections: impl Send/Sync for Vec.
This commit is contained in:
parent
0e039ada55
commit
766a71922f
1 changed files with 3 additions and 0 deletions
|
@ -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]>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue