blob: 0a08693c4e37646b8dd8f17b14f58793dd7351f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
// Doc Not Optimize
use crate::PickerArgResult::NotFound;
use crate::{SinglePickable, pickable_needed::*};
impl SinglePickable for String {
fn pick_single(str: Option<&str>) -> PickerArgResult<Self> {
str.map_or(NotFound, |str| PickerArgResult::Parsed(str.to_string()))
}
}
|