pub enum SetMutation {
Insert(usize),
Remove(usize),
}Expand description
Set mutation operations.
See the InclusionExclusion struct.
Variants§
Insert(usize)
Add the item with the given index to the set.
Remove(usize)
Remove the item with the given index from the set.
Trait Implementations§
Source§impl Clone for SetMutation
impl Clone for SetMutation
Source§fn clone(&self) -> SetMutation
fn clone(&self) -> SetMutation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SetMutation
Source§impl Debug for SetMutation
impl Debug for SetMutation
impl Eq for SetMutation
Source§impl PartialEq for SetMutation
impl PartialEq for SetMutation
Source§fn eq(&self, other: &SetMutation) -> bool
fn eq(&self, other: &SetMutation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetMutation
Auto Trait Implementations§
impl Freeze for SetMutation
impl RefUnwindSafe for SetMutation
impl Send for SetMutation
impl Sync for SetMutation
impl Unpin for SetMutation
impl UnsafeUnpin for SetMutation
impl UnwindSafe for SetMutation
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