rust-lang/rust — pull request #16136 by donkopotamus (2014-07-31 04:06:19+00:00)
Title: Implement slice::Vector for Option<T> and CVec<T>

The `std::slice::Vector` trait effectively provides an interface for saying an object can give a slice view in to itself. Both `Option` and `CVec` expose `as_slice` but do so by implementing them directly rather than implementing them via the `Vector` trait.

This patch alters both `Option` and `CVec` to instead expose it by implementing `Vector`.