Skip to content

Instantly share code, notes, and snippets.

#![feature(collections_range)]
use std::ops::{Bound, Range, RangeBounds};
use std::ptr;
use std::mem;
/// An extracting iterator for `Vec<T>`.
struct ExtractImpl<'a, T: 'a, F: FnMut(&mut T) -> bool> {
/// Current remaining range to remove
iter: Range<usize>,
@Popog
Popog / retain_iterator.md
Last active November 15, 2016 08:43
Updated for new pair layout and fixed several bugs
  • Feature Name: retain_iterator
  • Start Date: 10/6/2016
  • RFC PR: (leave this empty)
  • Rust Issue: (leave this empty)

Summary

New API for std::collections::HashMap and std::collections::HashSet. Modification to the retain API for std::vec::Vec and std::collections::vec_deque::VecDeque.

  • Feature Name: impl_else
  • Start Date: 5/16/2016
  • RFC PR: (leave this empty)
  • Rust Issue: (leave this empty)

Summary

Allow multiple conflicting impls via the else keyword.