Michal Budzynski
6b167f98d9
Updated tracking issue for String::splice and its unstable-book entry
2017-09-17 10:41:24 +02:00
Corey Farwell
68e0f28304
Rollup merge of #44572 - frewsxcv:frewsxcv-from-utf16-lossy, r=QuietMisdreavus
...
Clarify return type of `String::from_utf16_lossy`.
Fixes https://github.com/rust-lang/rust/issues/32874
2017-09-14 22:32:52 -04:00
Corey Farwell
b4f6fba1d9
Rollup merge of #44453 - tommyip:doc_string_as_mut_str, r=frewsxcv
...
Add doc example to String::as_mut_str
Fixes #44429 .
2017-09-14 22:32:38 -04:00
Corey Farwell
258ef37f8e
Clarify return type of String::from_utf16_lossy.
...
Fixes https://github.com/rust-lang/rust/issues/32874
2017-09-14 15:47:37 -04:00
Tommy Ip
bc1a4c6357
Add doc example to String::as_mut_str
...
Fixes #44429 .
2017-09-10 14:11:27 +01:00
Tommy Ip
3e8fadc2ac
Add doc example to String::as_str
...
Fixes #44428 .
2017-09-09 09:05:54 +01:00
Alex Crichton
581dc93293
Rollup merge of #44044 - mattico:string-splice-return, r=dtolnay
...
Remove Splice struct return value from String::splice
The implementation is now almost identical to the one in the RFC.
Fixes #44038
cc #32310
2017-08-30 11:11:09 -05:00
Matt Ickstadt
0c3c43c800
Remove Splice struct return value from String::splice
2017-08-26 15:07:32 -05:00
Guillaume Gomez
0a6c724dde
Add missing link in string doc
2017-08-25 23:09:00 +02:00
Guillaume Gomez
b88773f588
Add missing links for String module and type
2017-08-18 17:17:46 +02:00
Zack M. Davis
1b6c9605e4
use field init shorthand EVERYWHERE
...
Like #43008 (f668999 ), but _much more aggressive_.
2017-08-15 15:29:17 -07:00
bors
82be83cf74
Auto merge of #43500 - murarth:string-retain, r=alexcrichton
...
Add method `String::retain`
Behaves like `Vec::retain`, accepting a predicate `FnMut(char) -> bool`
and reducing the string to only characters for which the predicate
returns `true`.
2017-08-15 16:21:28 +00:00
Murarth
618ac89d25
Add method String::retain
...
Behaves like `Vec::retain`, accepting a predicate `FnMut(char) -> bool`
and reducing the string to only characters for which the predicate
returns `true`.
2017-08-14 20:42:26 -07:00
Bastien Orivel
3ab86fbab2
Fix some typos
2017-08-12 14:01:11 +02:00
Natalie Boehm
fac6ce79e5
Fix trait name Deref
2017-08-08 16:57:11 -04:00
Natalie Boehm
40f5b308bc
Update solution to add using &* as well as as_str()
2017-08-08 14:57:34 -04:00
Natalie Boehm
2a62b91343
Update explanation of deref coercion
2017-08-07 13:56:20 -04:00
Natalie Boehm
b298a58c78
Update String Deref to explain why using &String does not always work
2017-08-04 12:25:05 -04:00
Mark Simulacrum
32cbbffea2
Rollup merge of #42227 - ollie27:into_to_from, r=aturon
...
Convert Intos to Froms.
This is a resubmission of #42129 without `impl<T> From<Vec<T>> for Box<[T]>`.
2017-07-04 07:41:33 -06:00
Steven Fackler
0a9c13624d
Revert "Stabilize RangeArgument"
...
This reverts commit 143206d54d .
2017-06-30 08:34:53 -10:00
Steven Fackler
143206d54d
Stabilize RangeArgument
...
Move it and Bound to core::ops while we're at it.
Closes #30877
2017-06-24 19:20:57 -07:00
kennytm
4711982314
Removed as many "```ignore" as possible.
...
Replaced by adding extra imports, adding hidden code (`# ...`), modifying
examples to be runnable (sorry Homura), specifying non-Rust code, and
converting to should_panic, no_run, or compile_fail.
Remaining "```ignore"s received an explanation why they are being ignored.
2017-06-23 15:31:53 +08:00
Oliver Middleton
0d885efe16
Update version numbers for From impls
2017-06-21 01:18:19 +01:00
Clar Charr
5a97036b69
Convert Intos to Froms.
2017-06-21 01:18:18 +01:00
Stepan Koltsov
ea149b8571
Utf8Lossy type with chunks iterator and impl Display and Debug
2017-06-15 20:42:35 +01:00
Murarth
eadda7665e
Merge crate collections into alloc
2017-06-13 23:37:34 -07:00