pub struct OrdDot<A: Ord> {
pub actor: A,
pub counter: u64,
}
Expand description
An ordered dot. dot’s are first ordered by actor, dots from the same actor are ordered by counter.
Fields§
§actor: A
The actor who created this dot.
counter: u64
The current counter of this actor.
Trait Implementations§
source§impl<'de, A> Deserialize<'de> for OrdDot<A>where
A: Deserialize<'de> + Ord,
impl<'de, A> Deserialize<'de> for OrdDot<A>where A: Deserialize<'de> + Ord,
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<A: Ord + Ord> Ord for OrdDot<A>
impl<A: Ord + Ord> Ord for OrdDot<A>
source§impl<A: PartialEq + Ord> PartialEq<OrdDot<A>> for OrdDot<A>
impl<A: PartialEq + Ord> PartialEq<OrdDot<A>> for OrdDot<A>
source§impl<A: PartialOrd + Ord> PartialOrd<OrdDot<A>> for OrdDot<A>
impl<A: PartialOrd + Ord> PartialOrd<OrdDot<A>> for OrdDot<A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<A: Eq + Ord> Eq for OrdDot<A>
impl<A: Ord> StructuralEq for OrdDot<A>
impl<A: Ord> StructuralPartialEq for OrdDot<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for OrdDot<A>where A: RefUnwindSafe,
impl<A> Send for OrdDot<A>where A: Send,
impl<A> Sync for OrdDot<A>where A: Sync,
impl<A> Unpin for OrdDot<A>where A: Unpin,
impl<A> UnwindSafe for OrdDot<A>where A: 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