Skip to main content

Join

Trait Join 

Source
pub trait Join {
    // Required method
    fn join(&mut self, other: Self);
}
Expand description

State-based merge

§Laws

  • Associativity: x ∨ (y ∨ z) = (x ∨ y) ∨ z
  • Commutativity: x ∨ y = y ∨ x
  • Idempotence: x ∨ x = x
  • Identity: If Self: Default, then x ∨ Self::default() = x

where x ∨ y means x.join(y)

§References

Required Methods§

Source

fn join(&mut self, other: Self)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T, S> Join for GrowOnlyHashSet<T, S>
where T: Eq + Hash, S: BuildHasher,

Source§

impl<T> Join for GrowOnlyBTreeSet<T>
where T: Ord,

Source§

impl<T> Join for LastWriteWins<T>