pub struct FieldVersions(pub Vec<u64>);Expand description
Per-field version numbers for state change tracking.
Each element corresponds to one state field, identified by the field’s declaration index (0-based). The Pregel scheduler uses version numbers to decide which nodes need to re-execute when subscribed fields change.
When #[derive(State)] generates the State implementation, it also
generates a concrete FieldVersions type for the struct.
Tuple Fields§
§0: Vec<u64>Implementations§
Trait Implementations§
Source§impl Clone for FieldVersions
impl Clone for FieldVersions
Source§fn clone(&self) -> FieldVersions
fn clone(&self) -> FieldVersions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldVersions
impl Debug for FieldVersions
Source§impl Default for FieldVersions
impl Default for FieldVersions
Source§fn default() -> FieldVersions
fn default() -> FieldVersions
Returns the “default value” for a type. Read more
impl Eq for FieldVersions
Source§impl PartialEq for FieldVersions
impl PartialEq for FieldVersions
Source§fn eq(&self, other: &FieldVersions) -> bool
fn eq(&self, other: &FieldVersions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldVersions
Auto Trait Implementations§
impl Freeze for FieldVersions
impl RefUnwindSafe for FieldVersions
impl Send for FieldVersions
impl Sync for FieldVersions
impl Unpin for FieldVersions
impl UnsafeUnpin for FieldVersions
impl UnwindSafe for FieldVersions
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> 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.