Trouble chaining option and struct field using iterator interface

前端 未结 0 1328
忘了有多久
忘了有多久 2021-01-23 04:51

I\'m trying to make the following code work:

struct IntHolder {
    ints: Vec,
}

impl IntHolder {
    fn special_int(&self) -> Option

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