pub struct SortedGroups<G, E, F>{ /* private fields */ }Implementations§
Source§impl<G, E, F> SortedGroups<G, E, F>
impl<G, E, F> SortedGroups<G, E, F>
pub fn new(group_from_element: F) -> Self
pub fn from_iter( elements: impl Iterator<Item = E>, group_from_element: F, ) -> Self
pub fn insert(&mut self, element: E)
pub fn len(&self) -> usize
pub fn groups_len(&self) -> usize
pub fn iter_groups(&self) -> impl Iterator<Item = (&G, &BTreeSet<E>)>
Trait Implementations§
Source§impl<'a, G, E, F> IntoIterator for &'a SortedGroups<G, E, F>
impl<'a, G, E, F> IntoIterator for &'a SortedGroups<G, E, F>
Auto Trait Implementations§
impl<G, E, F> Freeze for SortedGroups<G, E, F>where
F: Freeze,
impl<G, E, F> RefUnwindSafe for SortedGroups<G, E, F>
impl<G, E, F> Send for SortedGroups<G, E, F>
impl<G, E, F> Sync for SortedGroups<G, E, F>
impl<G, E, F> Unpin for SortedGroups<G, E, F>where
F: Unpin,
impl<G, E, F> UnwindSafe for SortedGroups<G, E, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more