collections: Move push/pop to MutableSeq

Implement for Vec, DList, RingBuf. Add MutableSeq to the prelude.

Since the collections traits are in the prelude most consumers of
these methods will continue to work without change.

[breaking-change]
This commit is contained in:
Brian Anderson
2014-07-11 10:12:38 -07:00
parent c080d26d32
commit d36a8f3f9c
31 changed files with 142 additions and 86 deletions

View File

@@ -288,4 +288,6 @@ mod std {
#[cfg(test)] pub use os = realstd::os;
// The test runner requires std::slice::Vector, so re-export std::slice just for it.
#[cfg(test)] pub use slice;
pub use collections; // vec!() uses MutableSeq
}