Enum identity_diff::DiffOption
source · [−]diff chain features are slated for removal
Expand description
A DiffOption<T>
type which represents a Diffed Option<T>
. By default this value is untagged for serde
. It
also converts to
and from
Option
Variants
Some(<T as Diff>::Type)
diff chain features are slated for removal
None
diff chain features are slated for removal
Trait Implementations
sourceimpl<T: Clone + Diff> Clone for DiffOption<T>
impl<T: Clone + Diff> Clone for DiffOption<T>
sourcefn clone(&self) -> DiffOption<T>
fn clone(&self) -> DiffOption<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Diff> Debug for DiffOption<T>
impl<T: Diff> Debug for DiffOption<T>
Debug implementation for DiffOption<T>
.
sourceimpl<T: Diff> Default for DiffOption<T>
impl<T: Diff> Default for DiffOption<T>
Default implementation for DiffOption<T>
.
sourceimpl<'de, T: Diff> Deserialize<'de> for DiffOption<T> where
T: Deserialize<'de>,
impl<'de, T: Diff> Deserialize<'de> for DiffOption<T> where
T: Deserialize<'de>,
sourcefn 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
sourceimpl<T> From<DiffOption<T>> for Option<T> where
T: Diff,
impl<T> From<DiffOption<T>> for Option<T> where
T: Diff,
From DiffOption<T>
implementation for Option<T>
.
sourcefn from(other: DiffOption<T>) -> Self
fn from(other: DiffOption<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Option<T>> for DiffOption<T> where
T: Diff,
impl<T> From<Option<T>> for DiffOption<T> where
T: Diff,
From Option<T>
implementation for DiffOption<T>
.
sourceimpl<T: PartialEq + Diff> PartialEq<DiffOption<T>> for DiffOption<T>
impl<T: PartialEq + Diff> PartialEq<DiffOption<T>> for DiffOption<T>
sourcefn eq(&self, other: &DiffOption<T>) -> bool
fn eq(&self, other: &DiffOption<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DiffOption<T>) -> bool
fn ne(&self, other: &DiffOption<T>) -> bool
This method tests for !=
.
sourceimpl<T: Diff> Serialize for DiffOption<T> where
T: Serialize,
impl<T: Diff> Serialize for DiffOption<T> where
T: Serialize,
impl<T: Diff> StructuralPartialEq for DiffOption<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for DiffOption<T> where
<T as Diff>::Type: RefUnwindSafe,
impl<T> Send for DiffOption<T> where
<T as Diff>::Type: Send,
impl<T> Sync for DiffOption<T> where
<T as Diff>::Type: Sync,
impl<T> Unpin for DiffOption<T> where
<T as Diff>::Type: Unpin,
impl<T> UnwindSafe for DiffOption<T> where
<T as Diff>::Type: 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