[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.
auto merge of #10828 : SimonSapin/rust/ascii_opt, r=cmr

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