diff options
| author | bors <bors@rust-lang.org> | 2013-09-16 09:00:44 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-16 09:00:44 -0700 |
| commit | 6bc48b63f376439801d43820f6df0990797b8787 (patch) | |
| tree | fe9bf7e0331ef0a8100a18f0b3f15e06f2c6003c /src/rt/jemalloc/test/aligned_alloc.exp | |
| parent | 507a7f093d51829ccde225542bda2a805be32ba2 (diff) | |
| parent | 0635cb75b59fd99c59ee49fc4036e557de1f349f (diff) | |
| download | rust-6bc48b63f376439801d43820f6df0990797b8787.tar.gz rust-6bc48b63f376439801d43820f6df0990797b8787.zip | |
auto merge of #9192 : Kimundi/rust/master, r=huonw
A SendStr is a string that can hold either a ~str or a &'static str. This can be useful as an optimization when an allocation is sometimes needed but the common case is statically known. Possible use cases include Maps with both static and owned keys, or propagating error messages across task boundaries. SendStr implements most basic traits in a way that hides the fact that it is an enum; in particular things like order and equality are only determined by the content of the wrapped strings. This basically reimplements #7599 and has a use case for replacing an similar type in `std::rt::logging` ( Added in #9180).
Diffstat (limited to 'src/rt/jemalloc/test/aligned_alloc.exp')
0 files changed, 0 insertions, 0 deletions
