diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2014-05-01 15:17:36 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2014-05-02 17:45:17 +0200 |
| commit | 4a122a3185d77cf716dc52d2f54a0595cbccf861 (patch) | |
| tree | dfbf6dedfbe40618fedb99405410b67c222fd3bf /src/rustllvm/RustWrapper.cpp | |
| parent | b7374182f7298183f261a0905ac10f5c8c9701ad (diff) | |
| download | rust-4a122a3185d77cf716dc52d2f54a0595cbccf861.tar.gz rust-4a122a3185d77cf716dc52d2f54a0595cbccf861.zip | |
Updated maybe_owned_vec with review feedback.
Namely: * Added conversion traits both to and from the various vector types, analogous to how `str::MaybeOwned` works with `str::IntoMaybeOwned` and `str::Str`. This led me to add the `FixedLen` variant of `MaybeOwnedVector` for interoperability with `std::slice`. * Revised client example code to make use of `into_maybe_owned` * Added implementations of `Show` and `CloneableVector` for `MaybeOwnedVector`. * As suggested by kballard, added `into_vec` method that is analogous to `CloneableVector::into_owned` except it produces a `Vec` rather than a `~[T]`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
