Type Alias Clock

Source
pub type Clock = Max<u64>;
Expand description

Timestamps used in the model.

Aliased Type§

struct Clock(/* private fields */);

Implementations

§

impl<T> Max<T>

pub fn new(val: T) -> Max<T>

Create a new Max lattice instance from a T.

pub fn from(val: impl Into<T>) -> Max<T>

Create a new Max lattice instance from an Into<T> value.

pub fn as_reveal_ref(&self) -> &T

Reveal the inner value as a shared reference.

pub fn as_reveal_mut(&mut self) -> &mut T

Reveal the inner value as an exclusive reference.

pub fn into_reveal(self) -> T

Gets the inner by value, consuming self.

Trait Implementations

§

impl<T> Clone for Max<T>
where T: Clone,

§

fn clone(&self) -> Max<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for Max<T>
where T: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> DeepReveal for Max<T>

§

type Revealed = T

The underlying type when revealed.
§

fn deep_reveal(self) -> <Max<T> as DeepReveal>::Revealed

Reveals the underlying lattice types recursively.
§

impl Default for Max<u64>

§

fn default() -> Max<u64>

Returns the “default value” for a type. Read more
§

impl<'de, T> Deserialize<'de> for Max<T>
where T: Deserialize<'de>,

§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Max<T>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl IsBot for Max<u64>

§

fn is_bot(&self) -> bool

Returns if self is lattice bottom (⊥). Read more
§

impl IsTop for Max<u64>

§

fn is_top(&self) -> bool

Returns if self is lattice top (⊤). Read more
§

impl<T> LatticeFrom<Max<T>> for Max<T>

§

fn lattice_from(other: Max<T>) -> Max<T>

Convert from the Other lattice into Self.
§

impl<T> Merge<Max<T>> for Max<T>
where T: Ord,

§

fn merge(&mut self, other: Max<T>) -> bool

Merge other into the self lattice. Read more
§

fn merge_owned(this: Self, delta: Other) -> Self
where Self: Sized,

Merge this and delta together, returning the new value.
§

impl<T> Ord for Max<T>
where T: Ord,

§

fn cmp(&self, other: &Max<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl<T> PartialEq for Max<T>
where T: PartialEq,

§

fn eq(&self, other: &Max<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<T> PartialOrd for Max<T>
where T: PartialOrd,

§

fn partial_cmp(&self, other: &Max<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl<T> Serialize for Max<T>
where T: Serialize,

§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<T> Copy for Max<T>
where T: Copy,

§

impl<T> Eq for Max<T>
where T: Eq,

§

impl<T> LatticeOrd for Max<T>
where Max<T>: PartialOrd,

§

impl<T> StructuralPartialEq for Max<T>