These are chat archives for rust-lang/rust

Oct 2015
John C F
Oct 17 2015 16:16
Where is to_string() method of &str defined? I expected it to be in libcore/str/, but it's not there!
Peter Atashian
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
Oct 17 2015 16:32
Cool! Found them! ToString is in libcore/fmt/ and Display for str in libcollections/ Thanks a lot @retep998