Skip to main content

CausalOrdering

Trait CausalOrdering 

Source
pub trait CausalOrdering {
    // Required methods
    fn precedes(&self, other: &Self) -> bool;
    fn concurrent_with(&self, other: &Self) -> bool;
}
Expand description

Extension trait for working with causality

Required Methods§

Source

fn precedes(&self, other: &Self) -> bool

Checks if this event causally precedes another

Source

fn concurrent_with(&self, other: &Self) -> bool

Checks if this event is concurrent with another

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§