[−][src]Struct chronofold::Timestamp
An ordered pair of the author's index and the author.
The lexicographic order of timestamps forms an arbitrary total order, that is consistent with cause-effect ordering. That is, if a timestamp is greater than another, its associated event either happened after the other or was concurrent.
Trait Implementations
impl<A: Clone> Clone for Timestamp<A>
[src]
impl<A: Copy> Copy for Timestamp<A>
[src]
impl<A: Debug> Debug for Timestamp<A>
[src]
impl<A: Display> Display for Timestamp<A>
[src]
impl<A: Eq> Eq for Timestamp<A>
[src]
impl<A: Ord> Ord for Timestamp<A>
[src]
fn cmp(&self, other: &Timestamp<A>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<A: PartialEq> PartialEq<Timestamp<A>> for Timestamp<A>
[src]
impl<A: PartialOrd> PartialOrd<Timestamp<A>> for Timestamp<A>
[src]
fn partial_cmp(&self, other: &Timestamp<A>) -> Option<Ordering>
[src]
fn lt(&self, other: &Timestamp<A>) -> bool
[src]
fn le(&self, other: &Timestamp<A>) -> bool
[src]
fn gt(&self, other: &Timestamp<A>) -> bool
[src]
fn ge(&self, other: &Timestamp<A>) -> bool
[src]
impl<A> StructuralEq for Timestamp<A>
[src]
impl<A> StructuralPartialEq for Timestamp<A>
[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for Timestamp<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for Timestamp<A> where
A: Send,
A: Send,
impl<A> Sync for Timestamp<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Timestamp<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Timestamp<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,
fn borrow_mut(&mut self) -> &mut T
[src]
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,