pub struct RollingSet<T: Hash + Eq> { /* private fields */ }
Implementations§
Source§impl<T> RollingSet<T>
impl<T> RollingSet<T>
pub fn new(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn insert(&mut self, element: T)
pub fn pop(&mut self) -> Option<T>
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn set_capacity(&mut self, new: usize) -> usize
pub fn capacity(&self) -> usize
pub fn remove(&mut self, element: &T) -> bool
pub fn contains(&self, element: &T) -> bool
pub fn len(&self) -> usize
pub fn clear(&mut self)
Trait Implementations§
Source§impl<T: Clone + Hash + Eq> Clone for RollingSet<T>
impl<T: Clone + Hash + Eq> Clone for RollingSet<T>
Source§fn clone(&self) -> RollingSet<T>
fn clone(&self) -> RollingSet<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T: Hash + Eq> StructuralPartialEq for RollingSet<T>
Auto Trait Implementations§
impl<T> Freeze for RollingSet<T>
impl<T> RefUnwindSafe for RollingSet<T>where
T: RefUnwindSafe,
impl<T> Send for RollingSet<T>
impl<T> Sync for RollingSet<T>
impl<T> Unpin for RollingSet<T>
impl<T> UnwindSafe for RollingSet<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