The map method takes the self argument by value, consuming the original, so this technique uses as_ref to first take an Option to a reference to the value ...
確定! 回上一頁