Add comments

This commit is contained in:
Uwe Klotz 2024-07-03 12:06:21 +02:00 committed by Alex
parent a523db78d1
commit 4fc6b96f40

View file

@ -404,6 +404,8 @@ impl Tag {
}
/// Removes all items with the specified [`ItemKey`], and returns them
///
/// See also: [take_filter()](Self::take_filter)
pub fn take(&mut self, key: &ItemKey) -> impl Iterator<Item = TagItem> + '_ {
self.take_filter(key, |_| true)
}
@ -412,6 +414,8 @@ impl Tag {
///
/// Only takes items for which `filter()` returns `true`. All other items are retained.
///
/// Returns the selected items in order and preserves the ordering of the remaining items.
///
/// # Examples
///
/// ```