Skip to main content

WritePast

Trait WritePast 

Source
pub trait WritePast {
    // Required methods
    fn contains(&self, write: &WriteId) -> bool;
    fn frontier(&self) -> impl Iterator<Item = &WriteId>;
}
Expand description

A causally closed authored past. Its frontier bounds the timestamps of every covered write; sequence order itself is not timestamp order.

Required Methods§

Source

fn contains(&self, write: &WriteId) -> bool

Whether the writer had consumed this write’s position.

Source

fn frontier(&self) -> impl Iterator<Item = &WriteId>

Writes whose causal pasts cover this entire past, including themselves.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WritePast for BTreeSet<WriteId>

Source§

fn contains(&self, write: &WriteId) -> bool

Source§

fn frontier(&self) -> impl Iterator<Item = &WriteId>

Implementors§