item_vec.last() is an Option<&T> . item_vec.last().clone() is another Option<&T> . This actually performs a shallow copy of the reference.
確定! 回上一頁