Skip to main content

OrAt

Trait OrAt 

Source
pub trait OrAt<'a, L: Location<'a>>: Sized + Sealed<'a, L> { }
Expand description

How Optional::or combines two Unbounded optionals located at L.

This is implemented for every type inside ticks and atomic regions. At root (process and cluster) locations, the result holds the latest value of each side across updates, which requires T: Clone.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<'a, T, L: Location<'a>> OrAt<'a, Atomic<L>> for T

Source§

impl<'a, T, L: Location<'a>> OrAt<'a, Tick<L>> for T

Source§

impl<'a, T: Clone + 'a, L: TopLevel<'a>> OrAt<'a, L> for T