]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/collections/btree/map.rs
Add and fix BTreeMap comments
[rust.git] / src / liballoc / collections / btree / map.rs
index bb9091a66594bda1665309811e38deab38fe4bd4..f3781db1cf784ef9b32654f29cf7632d9f6a9135 100644 (file)
@@ -1697,6 +1697,8 @@ pub struct DrainFilter<'a, K, V, F>
     pred: F,
     inner: DrainFilterInner<'a, K, V>,
 }
+/// Most of the implementation of DrainFilter, independent of the type
+/// of the predicate, thus also serving for BTreeSet::DrainFilter.
 pub(super) struct DrainFilterInner<'a, K: 'a, V: 'a> {
     length: &'a mut usize,
     cur_leaf_edge: Option<Handle<NodeRef<marker::Mut<'a>, K, V, marker::Leaf>, marker::Edge>>,