Enum futures_signals::signal_map::MapDiff
source · [−]pub enum MapDiff<K, V> {
Replace {
entries: Vec<(K, V)>,
},
Insert {
key: K,
value: V,
},
Update {
key: K,
value: V,
},
Remove {
key: K,
},
Clear {},
}
Variants
Replace
Insert
Update
Remove
Clear
Fields
Trait Implementations
impl<K: Eq, V: Eq> Eq for MapDiff<K, V>
impl<K, V> StructuralEq for MapDiff<K, V>
impl<K, V> StructuralPartialEq for MapDiff<K, V>
Auto Trait Implementations
impl<K, V> RefUnwindSafe for MapDiff<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MapDiff<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for MapDiff<K, V> where
K: Sync,
V: Sync,
impl<K, V> Unpin for MapDiff<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for MapDiff<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more