pub struct BagDelta<T> {
pub add: Vec<T>,
pub remove: Vec<T>,
}Expand description
A membership diff between two collections: what arrived and what left.
Nothing here records position — see SeqDelta for that.
Fields§
§add: Vec<T>Elements in the new collection that the old one did not have.
remove: Vec<T>Elements in the old collection that the new one does not have.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for BagDelta<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for BagDelta<T>where
T: Deserialize<'de>,
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
impl<T: Eq> Eq for BagDelta<T>
impl<T: PartialEq> StructuralPartialEq for BagDelta<T>
Auto Trait Implementations§
impl<T> Freeze for BagDelta<T>
impl<T> RefUnwindSafe for BagDelta<T>where
Vec<T>: RefUnwindSafe,
impl<T> Send for BagDelta<T>
impl<T> Sync for BagDelta<T>
impl<T> Unpin for BagDelta<T>
impl<T> UnsafeUnpin for BagDelta<T>where
Vec<T>: UnsafeUnpin,
impl<T> UnwindSafe for BagDelta<T>where
Vec<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