hello/
hello.rs

1use static_str::to_str;
2
3fn main() {
4    let option_value = Some(123);
5    let v = option_value.map_or("", |v| to_str(v.to_string()));
6    assert_eq!(v, "123");
7}