bool: make the from_str function a FromStr impl
auto merge of #5256 : thestinger/rust/bool, r=brson