core: Rename container mod to collections. Closes #12543
Also renames the `Container` trait to `Collection`. [breaking-change]
This commit is contained in:
parent
443a1cdf94
commit
50942c7695
46 changed files with 64 additions and 65 deletions
|
|
@ -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 }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue