pub(crate) struct UniqueTable<'entries, T: Eq + Hash> {
table: Vec<&'entries T>,
map: HashMap<&'entries T, usize>,
}
Expand description
Collect items into the table
list, removing duplicates.
Fields§
§table: Vec<&'entries T>
§map: HashMap<&'entries T, usize>
Implementations§
Auto Trait Implementations§
impl<'entries, T> Freeze for UniqueTable<'entries, T>
impl<'entries, T> RefUnwindSafe for UniqueTable<'entries, T>where
T: RefUnwindSafe,
impl<'entries, T> Send for UniqueTable<'entries, T>where
T: Sync,
impl<'entries, T> Sync for UniqueTable<'entries, T>where
T: Sync,
impl<'entries, T> Unpin for UniqueTable<'entries, T>
impl<'entries, T> UnwindSafe for UniqueTable<'entries, T>where
T: RefUnwindSafe,
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