pub struct NonOverlapping<T> { /* private fields */ }Implementations§
Source§impl<T> NonOverlapping<T>
impl<T> NonOverlapping<T>
pub fn new() -> Self
pub fn with(elem: T) -> Self
pub fn add<C: NonOverlappingCheck<Element = T>>( &mut self, to_add: C::Element, ) -> Result<(), C::Element>
pub fn remove<C: NonOverlappingCheck<Element = T>>( &mut self, item: &C::Element, ) -> bool
pub fn contains<C: NonOverlappingCheck<Element = T>>( &self, item: &C::Element, ) -> bool
pub fn iter(&self) -> Iter<'_, T>
Auto Trait Implementations§
impl<T> Freeze for NonOverlapping<T>
impl<T> RefUnwindSafe for NonOverlapping<T>where
T: RefUnwindSafe,
impl<T> Send for NonOverlapping<T>where
T: Send,
impl<T> Sync for NonOverlapping<T>where
T: Sync,
impl<T> Unpin for NonOverlapping<T>where
T: Unpin,
impl<T> UnwindSafe for NonOverlapping<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