What's the best way to pass a None when the function accepts a generic option?

后端 未结 0 861
暗喜
暗喜 2021-01-14 03:05

Is the following the best way to do that?!

fn f(v:Option){
    println!("{:?}", v);
}
fn main() {
    f::

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题