pub enum KeySet<T>{
None,
Some(Vec<T>),
AllExceptSome(Vec<T>),
All,
}Variants§
Implementations§
Source§impl<T> KeySet<T>
impl<T> KeySet<T>
pub fn for_some(elements: &Vec<T>) -> KeySet<T>
pub fn for_all_except_some(elements: &Vec<T>) -> KeySet<T>
pub fn invert(&self) -> Self
pub fn contains(&self, element: &T) -> bool
pub fn remove(&self, other: &KeySet<T>) -> KeySet<T>
pub fn intersect(&self, other: &KeySet<T>) -> KeySet<T>
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for KeySet<T>
impl<'de, T> Deserialize<'de> for KeySet<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Ord for KeySet<T>
impl<T> Ord for KeySet<T>
Source§impl<T> PartialOrd for KeySet<T>
impl<T> PartialOrd for KeySet<T>
impl<T> Eq for KeySet<T>
impl<T> StructuralPartialEq for KeySet<T>
Auto Trait Implementations§
impl<T> Freeze for KeySet<T>
impl<T> RefUnwindSafe for KeySet<T>where
T: RefUnwindSafe,
impl<T> Send for KeySet<T>where
T: Send,
impl<T> Sync for KeySet<T>where
T: Sync,
impl<T> Unpin for KeySet<T>where
T: Unpin,
impl<T> UnwindSafe for KeySet<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