[−][src]Struct crdts::dot::Dot
Dot is a version marker for a single actor
Fields
actor: A
The actor identifier
counter: u64
The current version of this actor
Implementations
impl<A: Clone> Dot<A>
[src]
pub fn new(actor: A, counter: u64) -> Self
[src]
Build a Dot from an actor and counter
pub fn inc(&self) -> Self
[src]
Generate the successor of this dot
pub fn apply_inc(&mut self)
[src]
Increment this dot's counter
Trait Implementations
impl<A: Arbitrary + Clone> Arbitrary for Dot<A>
[src]
pub fn arbitrary<G: Gen>(g: &mut G) -> Self
[src]
pub fn shrink(&self) -> Box<dyn Iterator<Item = Self>>
[src]
impl<A: Clone> Clone for Dot<A>
[src]
impl<A: Copy> Copy for Dot<A>
[src]
impl<A: Debug> Debug for Dot<A>
[src]
impl<'de, A> Deserialize<'de> for Dot<A> where
A: Deserialize<'de>,
[src]
A: Deserialize<'de>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<A: Eq> Eq for Dot<A>
[src]
impl<A: Actor> From<Dot<A>> for VClock<A>
[src]
impl<A: Actor> FromIterator<Dot<A>> for VClock<A>
[src]
pub fn from_iter<I: IntoIterator<Item = Dot<A>>>(iter: I) -> Self
[src]
impl<A: Hash> Hash for Dot<A>
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A: PartialEq> PartialEq<Dot<A>> for Dot<A>
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<A: PartialOrd> PartialOrd<Dot<A>> for Dot<A>
[src]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<A> Serialize for Dot<A> where
A: Serialize,
[src]
A: Serialize,
Auto Trait Implementations
impl<A> RefUnwindSafe for Dot<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for Dot<A> where
A: Send,
A: Send,
impl<A> Sync for Dot<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Dot<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Dot<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Member for T where
T: Clone + Eq + Hash,
[src]
T: Clone + Eq + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,