Enum identity_diff::DiffOption
source · pub enum DiffOption<T: Diff> {
Some(<T as Diff>::Type),
None,
}
👎Deprecated since 0.5.0: 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)
👎Deprecated since 0.5.0: diff chain features are slated for removal
None
👎Deprecated since 0.5.0: diff chain features are slated for removal
Trait Implementations§
source§impl<T: Clone + Diff> Clone for DiffOption<T>
impl<T: Clone + Diff> Clone for DiffOption<T>
source§fn clone(&self) -> DiffOption<T>
fn clone(&self) -> DiffOption<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Diff> Debug for DiffOption<T>
impl<T: Diff> Debug for DiffOption<T>
Debug implementation for DiffOption<T>
.
source§impl<T: Diff> Default for DiffOption<T>
impl<T: Diff> Default for DiffOption<T>
Default implementation for DiffOption<T>
.
source§impl<'de, T> Deserialize<'de> for DiffOption<T>where
T: Deserialize<'de> + Diff,
impl<'de, T> Deserialize<'de> for DiffOption<T>where T: Deserialize<'de> + Diff,
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> 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>
.
source§fn from(other: DiffOption<T>) -> Self
fn from(other: DiffOption<T>) -> Self
Converts to this type from the input type.
source§impl<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>
.
source§impl<T: PartialEq + Diff> PartialEq<DiffOption<T>> for DiffOption<T>
impl<T: PartialEq + Diff> PartialEq<DiffOption<T>> for DiffOption<T>
source§fn 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 ==
.