core: Rename container mod to collections. Closes #12543

Also renames the `Container` trait to `Collection`.

[breaking-change]
This commit is contained in:
Brian Anderson 2014-05-19 11:32:09 -07:00 committed by Alex Crichton
parent 443a1cdf94
commit 50942c7695
46 changed files with 64 additions and 65 deletions

View file

@ -121,7 +121,7 @@ impl<T: PartialEq> PartialEq for OwnedSlice<T> {
impl<T: Eq> Eq for OwnedSlice<T> {}
impl<T> Container for OwnedSlice<T> {
impl<T> Collection for OwnedSlice<T> {
fn len(&self) -> uint { self.len }
}

View file

@ -23,7 +23,7 @@ enum SmallVectorRepr<T> {
Many(Vec<T> ),
}
impl<T> Container for SmallVector<T> {
impl<T> Collection for SmallVector<T> {
fn len(&self) -> uint {
match self.repr {
Zero => 0,