These are chat archives for rust-lang/rust

17th
Oct 2015
John C F
@critiqjo
Oct 17 2015 16:16
Where is to_string() method of &str defined? I expected it to be in libcore/str/mod.rs, but it's not there!
Peter Atashian
@retep998
Oct 17 2015 16:23
@critiqjo ToString is impl'd for all T where T: Display, which includes &str
So look for the Display impl for &str instead
John C F
@critiqjo
Oct 17 2015 16:32
Cool! Found them! ToString is in libcore/fmt/mod.rs and Display for str in libcollections/string.rs... Thanks a lot @retep998