Count

Trait Count 

Source
pub trait Count: Copy {
    // Required methods
    fn zero() -> Self;
    fn add(&mut self, other: Self);
}
Expand description

Count trait to be used in MultiSet.

Required Methods§

Source

fn zero() -> Self

Return a zero count.

Source

fn add(&mut self, other: Self)

Add to the count.

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 Count for (u64, u64)

Source§

fn zero() -> Self

Return a zero count.

Source§

fn add(&mut self, other: Self)

Add to the count.

Source§

impl Count for u64

Source§

fn zero() -> Self

Return a zero count.

Source§

fn add(&mut self, other: Self)

Add to the count.

Implementors§