mozilla/rust — pull request #10828 by SimonSapin (2013-12-05 20:39:45+00:00)
Title: [std::ascii] Add .to_ascii_opt() and .into_ascii_opt() that return Option

… instead of failing.

Make them default methods on the trait, and also make .to_ascii() a default method while we’re at it.