pub struct Diff { /* fields omitted */ }
Expand description
The differences between two payload sets.
This is a list of additions to a set called announcments and a list of
removals called withdrawals. When iterated over, these two are provided
as a single list of pairs of Payload
and Action
s in order of the
payload. This makes it relatively safe to apply non-atomically.
Implementations
Returns an iterator over the set’s elements.
Returns an owned iterator over the diff’s elements.
Converts the value into an owned iterator.
Returns a new diff by extending this diff with additional changes.
This will result in an error if the diffs cannot be added to each other.
Applies the diff to a set returning a new set.
Applies the diff to a set ignoring overlaps and missing items.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Diff
impl UnwindSafe for Diff
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more