pub enum OptionDiff<T: Diff> {
Some(T::Repr),
None,
NoChange,
}
Variants§
Trait Implementations§
Source§impl<T: Diff> Clone for OptionDiff<T>
impl<T: Diff> Clone for OptionDiff<T>
Source§impl<T: Diff> Debug for OptionDiff<T>
impl<T: Diff> Debug for OptionDiff<T>
Source§impl<'de, T: Diff> Deserialize<'de> for OptionDiff<T>where
T::Repr: Deserialize<'de>,
impl<'de, T: Diff> Deserialize<'de> for OptionDiff<T>where
T::Repr: 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
Source§impl<T: Diff> PartialEq for OptionDiff<T>
impl<T: Diff> PartialEq for OptionDiff<T>
Auto Trait Implementations§
impl<T> Freeze for OptionDiff<T>
impl<T> RefUnwindSafe for OptionDiff<T>
impl<T> Send for OptionDiff<T>
impl<T> Sync for OptionDiff<T>
impl<T> Unpin for OptionDiff<T>
impl<T> UnwindSafe for OptionDiff<T>
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