pub enum DiffItem<'a, A> {
Add(&'a A),
Update {
old: &'a A,
new: &'a A,
},
Remove(&'a A),
}
Expand description
A description of a difference between two ordered sets.
Variants§
Add(&'a A)
This value has been added to the new set.
Update
This value has been changed between the two sets.
Remove(&'a A)
This value has been removed from the new set.
Trait Implementations§
source§impl<'a, A> PartialEq<DiffItem<'a, A>> for DiffItem<'a, A>where
A: PartialEq<A>,
impl<'a, A> PartialEq<DiffItem<'a, A>> for DiffItem<'a, A>where A: PartialEq<A>,
impl<'a, A> Eq for DiffItem<'a, A>where A: Eq,
impl<'a, A> StructuralEq for DiffItem<'a, A>
impl<'a, A> StructuralPartialEq for DiffItem<'a, A>
Auto Trait Implementations§
impl<'a, A> RefUnwindSafe for DiffItem<'a, A>where A: RefUnwindSafe,
impl<'a, A> Send for DiffItem<'a, A>where A: Sync,
impl<'a, A> Sync for DiffItem<'a, A>where A: Sync,
impl<'a, A> Unpin for DiffItem<'a, A>
impl<'a, A> UnwindSafe for DiffItem<'a, A>where A: RefUnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.