pub enum Diff<T> {
Same,
Born(T),
Died(T),
Changed(ChangedType<T>),
}
Expand description
Serde-friendly Diff
shadow.
Variants§
Same
No change.
Born(T)
A new value has been set.
Died(T)
A value has been removed.
Changed(ChangedType<T>)
Value changed.
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Diff<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Diff<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> StructuralPartialEq for Diff<T>
Auto Trait Implementations§
impl<T> Freeze for Diff<T>where
T: Freeze,
impl<T> RefUnwindSafe for Diff<T>where
T: RefUnwindSafe,
impl<T> Send for Diff<T>where
T: Send,
impl<T> Sync for Diff<T>where
T: Sync,
impl<T> Unpin for Diff<T>where
T: Unpin,
impl<T> UnwindSafe for Diff<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