[−][src]Struct negatable_set::NegatableSet
Implementations
impl<I: MutableSet + Default> NegatableSet<I>
[src]
impl<I: MutableSet> NegatableSet<I>
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn is_all(&self) -> bool
[src]
pub fn into_elements(self) -> I
[src]
pub fn elements(&self) -> &I
[src]
pub fn elements_mut(&mut self) -> &mut I
[src]
impl<I: MutableSet> NegatableSet<I>
[src]
pub fn contains(&self, value: &I::Item) -> bool
[src]
pub fn insert(&mut self, that: I::Item)
[src]
pub fn is_superset(&self, that: &Self) -> bool
[src]
pub fn is_subset(&self, that: &Self) -> bool
[src]
pub fn is_disjoint(&self, that: &Self) -> bool
[src]
impl<I: MutableSet> NegatableSet<I> where
I::Item: Ord + Clone,
[src]
I::Item: Ord + Clone,
Trait Implementations
impl<'a, I: MutableSet + 'a> BitAnd<&'a NegatableSet<I>> for &'a NegatableSet<I> where
&'a I: BitAnd<Output = I>,
&'a I: BitOr<Output = I>,
&'a I: Sub<Output = I>,
[src]
&'a I: BitAnd<Output = I>,
&'a I: BitOr<Output = I>,
&'a I: Sub<Output = I>,
type Output = NegatableSet<I>
The resulting type after applying the &
operator.
fn bitand(self, that: Self) -> Self::Output
[src]
impl<I: MutableSet> BitAndAssign<NegatableSet<I>> for NegatableSet<I> where
I: BitAndAssign,
I: BitOrAssign,
I: SubAssign,
[src]
I: BitAndAssign,
I: BitOrAssign,
I: SubAssign,
fn bitand_assign(&mut self, that: Self)
[src]
impl<'a, I: MutableSet> BitOr<&'a NegatableSet<I>> for &'a NegatableSet<I> where
&'a I: BitAnd<Output = I>,
&'a I: BitOr<Output = I>,
&'a I: Sub<Output = I>,
[src]
&'a I: BitAnd<Output = I>,
&'a I: BitOr<Output = I>,
&'a I: Sub<Output = I>,
type Output = NegatableSet<I>
The resulting type after applying the |
operator.
fn bitor(self, that: Self) -> Self::Output
[src]
impl<I: MutableSet> BitOrAssign<NegatableSet<I>> for NegatableSet<I> where
I: BitAndAssign,
I: BitOrAssign,
I: SubAssign,
[src]
I: BitAndAssign,
I: BitOrAssign,
I: SubAssign,
fn bitor_assign(&mut self, that: Self)
[src]
impl<'a, I: MutableSet> BitXor<&'a NegatableSet<I>> for &'a NegatableSet<I> where
&'a I: BitXor<Output = I>,
[src]
&'a I: BitXor<Output = I>,
type Output = NegatableSet<I>
The resulting type after applying the ^
operator.
fn bitxor(self, that: Self) -> Self::Output
[src]
impl<I: MutableSet> BitXorAssign<NegatableSet<I>> for NegatableSet<I> where
I: BitXorAssign,
[src]
I: BitXorAssign,
fn bitxor_assign(&mut self, that: Self)
[src]
impl<I: Clone> Clone for NegatableSet<I>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I: MutableSet> Debug for NegatableSet<I>
[src]
impl<I: Default> Default for NegatableSet<I>
[src]
fn default() -> NegatableSet<I>
[src]
impl<'de, A> Deserialize<'de> for NegatableSet<A> where
A: MutableSet + Deserialize<'de>,
[src]
A: MutableSet + Deserialize<'de>,
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl<I: Eq> Eq for NegatableSet<I>
[src]
impl<I: MutableSet> From<I> for NegatableSet<I>
[src]
impl<I: MutableSet + Default> From<bool> for NegatableSet<I>
[src]
impl<I: Hash> Hash for NegatableSet<I>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, I: MutableSet + Clone> Not for &'a NegatableSet<I>
[src]
type Output = NegatableSet<I>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl<I: MutableSet + Clone> Not for NegatableSet<I>
[src]
type Output = NegatableSet<I>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl<I: PartialEq> PartialEq<NegatableSet<I>> for NegatableSet<I>
[src]
impl<A> Serialize for NegatableSet<A> where
A: MutableSet + Serialize,
[src]
A: MutableSet + Serialize,
impl<'a, I: MutableSet> Sub<&'a NegatableSet<I>> for &'a NegatableSet<I> where
&'a I: BitAnd<Output = I>,
&'a I: BitOr<Output = I>,
&'a I: Sub<Output = I>,
[src]
&'a I: BitAnd<Output = I>,
&'a I: BitOr<Output = I>,
&'a I: Sub<Output = I>,
type Output = NegatableSet<I>
The resulting type after applying the -
operator.
fn sub(self, that: Self) -> Self::Output
[src]
impl<I: MutableSet> SubAssign<NegatableSet<I>> for NegatableSet<I> where
I: BitAndAssign,
I: BitOrAssign,
I: SubAssign,
[src]
I: BitAndAssign,
I: BitOrAssign,
I: SubAssign,
fn sub_assign(&mut self, that: Self)
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for NegatableSet<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for NegatableSet<I> where
I: Send,
I: Send,
impl<I> Sync for NegatableSet<I> where
I: Sync,
I: Sync,
impl<I> Unpin for NegatableSet<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for NegatableSet<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,