]> git.lizzy.rs Git - rust.git/commit
[std::ascii] Add .to_ascii_opt() and .into_ascii_opt() returning Option
authorSimon Sapin <simon.sapin@exyr.org>
Thu, 5 Dec 2013 20:38:04 +0000 (20:38 +0000)
committerSimon Sapin <simon.sapin@exyr.org>
Mon, 23 Dec 2013 18:47:06 +0000 (19:47 +0100)
commitf8cc9a9cb1e221abb0cbf2e169b10c826f3fbd98
tree285dfd66a3aba58dd35508552b4a29efd0d6e30b
parentd9c06586f2aa12f89c94a27a20f0d0b260da216e
[std::ascii] Add .to_ascii_opt() and .into_ascii_opt() returning Option

… instead of failing.

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

Conflicts:
src/libstd/ascii.rs
src/libstd/ascii.rs