pub struct ConcurrentSet<T>{ /* private fields */ }
Implementations§
Source§impl<T> ConcurrentSet<T>
impl<T> ConcurrentSet<T>
pub fn new() -> Self
pub fn reserve(&self, additional: usize)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&self)
pub fn insert(&self, value: T) -> bool
pub fn contains<Q>(&self, value: &Q) -> bool
pub fn remove<Q>(&self, value: &Q) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for ConcurrentSet<T>
impl<T> !RefUnwindSafe for ConcurrentSet<T>
impl<T> Send for ConcurrentSet<T>where
T: Send,
impl<T> Sync for ConcurrentSet<T>
impl<T> Unpin for ConcurrentSet<T>where
T: Unpin,
impl<T> UnwindSafe for ConcurrentSet<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