[−][src]Enum pour::mutation::Mutation
A mutation to perform at a single key-value pair
Variants
Leave the entry alone
Remove the entry
Replace only a nonexisting entry with another value
Replace only an existing entry with another value
Implementations
impl<K, V> Mutation<K, V>
[src]
pub fn normalize(self, is_empty: bool) -> Mutation<K, V>
[src]
Transform an action into the appropriate action for a potentially empty entry
A user usually does not need to worry about this, as it is done automatically with the result of the mutate
function
pub fn is_null(&self) -> bool
[src]
Check whether an action is null
Trait Implementations
impl<K: Clone, V: Clone> Clone for Mutation<K, V>
[src]
impl<K: Copy, V: Copy> Copy for Mutation<K, V>
[src]
impl<K: Debug, V: Debug> Debug for Mutation<K, V>
[src]
impl<K: Eq, V: Eq> Eq for Mutation<K, V>
[src]
impl<K: Hash, V: Hash> Hash for Mutation<K, V>
[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<K: PartialEq, V: PartialEq> PartialEq<Mutation<K, V>> for Mutation<K, V>
[src]
impl<K, V> StructuralEq for Mutation<K, V>
[src]
impl<K, V> StructuralPartialEq for Mutation<K, V>
[src]
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Mutation<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Mutation<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for Mutation<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for Mutation<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Mutation<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: 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> CallHasher for T where
T: Hash,
[src]
T: Hash,
impl<T> Erasable for T
pub unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
pub const ACK_1_1_0: bool
fn erase(this: NonNull<Self>) -> NonNull<Erased>
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>,