用法. pub fn retain<F>(&mut self, f:F) where F:FnMut(&T) -> bool,. 僅保留謂詞指定的元素。 換句話說,刪除所有元素 e 使得 f(&e) 返回false。
確定! 回上一頁