pub struct Set<T> { /* private fields */ }Implementations§
Source§impl<T: Clone + Hash + PartialEq> Set<T>
impl<T: Clone + Hash + PartialEq> Set<T>
Sourcepub fn insert_range<'a, I: Iterator<Item = &'a T>>(&mut self, items: I)where
T: 'a,
pub fn insert_range<'a, I: Iterator<Item = &'a T>>(&mut self, items: I)where
T: 'a,
C++ template<class Iterator> void insert(Iterator begin, Iterator end).
Source§impl<T: Clone + Hash + PartialEq> Set<T>
impl<T: Clone + Hash + PartialEq> Set<T>
Sourcepub fn operator_eq(&self, there: &Set<T>) -> bool
pub fn operator_eq(&self, there: &Set<T>) -> bool
C++ bool operator==(const Set<T>& there) const.
NOTE: transcribed 1:1 INCLUDING the upstream bug — the condition reads
present && there.contains(elem) where the comment says it means to
check “if it’s NOT in there”. Faithful ports match reference behavior.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Set<T>where
T: Freeze,
impl<T> RefUnwindSafe for Set<T>where
T: RefUnwindSafe,
impl<T> Send for Set<T>where
T: Send,
impl<T> Sync for Set<T>where
T: Sync,
impl<T> Unpin for Set<T>where
T: Unpin,
impl<T> UnsafeUnpin for Set<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Set<T>where
T: UnwindSafe,
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