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

@@ -20,6 +20,7 @@ A simple wrapper over the platform's dynamic library facilities
#![allow(missing_doc)]
use clone::Clone;
use collections::MutableSeq;
use c_str::ToCStr;
use iter::Iterator;
use mem;