Struct crdts::dot::Dot [−][src]
pub struct Dot<A> { pub actor: A, pub counter: u64, }
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> Dot<A>
[src]
pub fn new(actor: A, counter: u64) -> Self
[src]
Build a Dot from an actor and counter
pub fn apply_inc(&mut self)
[src]
Increment this dot’s counter
impl<A: Clone> Dot<A>
[src]
Trait Implementations
impl<A: Arbitrary + Clone> Arbitrary for Dot<A>
[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>,
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> From<(A, u64)> for Dot<A>
[src]
impl<A: Ord + Clone + Debug> From<Dot<A>> for VClock<A>
[src]
impl<A: Ord> From<Dot<A>> for OrdDot<A>
[src]
impl<A: Ord> From<OrdDot<A>> for Dot<A>
[src]
impl<A: Ord + Clone + Debug> FromIterator<Dot<A>> for VClock<A>
[src]
fn from_iter<I: IntoIterator<Item = Dot<A>>>(iter: I) -> Self
[src]
impl<A: Hash> Hash for Dot<A>
[src]
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]
impl<A: PartialOrd> PartialOrd<Dot<A>> for Dot<A>
[src]
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 lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl<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> 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>,