pub struct SnapUpdates<Snapshot, Updates> {
pub snapshot: Snapshot,
pub updates: Updates,
}Fields§
§snapshot: Snapshot§updates: UpdatesImplementations§
Source§impl<Snapshot, Updates> SnapUpdates<Snapshot, Updates>
impl<Snapshot, Updates> SnapUpdates<Snapshot, Updates>
pub const fn new( snapshot: Snapshot, updates: Updates, ) -> SnapUpdates<Snapshot, Updates>
Trait Implementations§
Source§impl<Snapshot: Clone, Updates: Clone> Clone for SnapUpdates<Snapshot, Updates>
impl<Snapshot: Clone, Updates: Clone> Clone for SnapUpdates<Snapshot, Updates>
Source§fn clone(&self) -> SnapUpdates<Snapshot, Updates>
fn clone(&self) -> SnapUpdates<Snapshot, Updates>
Returns a duplicate 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<'de, Snapshot, Updates> Deserialize<'de> for SnapUpdates<Snapshot, Updates>where
Snapshot: Deserialize<'de>,
Updates: Deserialize<'de>,
impl<'de, Snapshot, Updates> Deserialize<'de> for SnapUpdates<Snapshot, Updates>where
Snapshot: Deserialize<'de>,
Updates: 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<Snapshot: Ord, Updates: Ord> Ord for SnapUpdates<Snapshot, Updates>
impl<Snapshot: Ord, Updates: Ord> Ord for SnapUpdates<Snapshot, Updates>
Source§fn cmp(&self, other: &SnapUpdates<Snapshot, Updates>) -> Ordering
fn cmp(&self, other: &SnapUpdates<Snapshot, Updates>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Snapshot: PartialEq, Updates: PartialEq> PartialEq for SnapUpdates<Snapshot, Updates>
impl<Snapshot: PartialEq, Updates: PartialEq> PartialEq for SnapUpdates<Snapshot, Updates>
Source§fn eq(&self, other: &SnapUpdates<Snapshot, Updates>) -> bool
fn eq(&self, other: &SnapUpdates<Snapshot, Updates>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<Snapshot: PartialOrd, Updates: PartialOrd> PartialOrd for SnapUpdates<Snapshot, Updates>
impl<Snapshot: PartialOrd, Updates: PartialOrd> PartialOrd for SnapUpdates<Snapshot, Updates>
Source§impl<Snapshot, Updates> Serialize for SnapUpdates<Snapshot, Updates>
impl<Snapshot, Updates> Serialize for SnapUpdates<Snapshot, Updates>
impl<Snapshot: Copy, Updates: Copy> Copy for SnapUpdates<Snapshot, Updates>
impl<Snapshot: Eq, Updates: Eq> Eq for SnapUpdates<Snapshot, Updates>
impl<Snapshot, Updates> StructuralPartialEq for SnapUpdates<Snapshot, Updates>
Auto Trait Implementations§
impl<Snapshot, Updates> Freeze for SnapUpdates<Snapshot, Updates>
impl<Snapshot, Updates> RefUnwindSafe for SnapUpdates<Snapshot, Updates>where
Snapshot: RefUnwindSafe,
Updates: RefUnwindSafe,
impl<Snapshot, Updates> Send for SnapUpdates<Snapshot, Updates>
impl<Snapshot, Updates> Sync for SnapUpdates<Snapshot, Updates>
impl<Snapshot, Updates> Unpin for SnapUpdates<Snapshot, Updates>
impl<Snapshot, Updates> UnwindSafe for SnapUpdates<Snapshot, Updates>where
Snapshot: UnwindSafe,
Updates: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more