Trait ransel::set::ImpliedSet

source ·
pub trait ImpliedSet {
    // Required methods
    fn count(&self) -> usize;
    fn size(&self) -> u64;
}
Expand description

The trait ImpliedSet exposes a basic set-like property of a data structure over non-negative integers.

Required Methods§

source

fn count(&self) -> usize

Return the number of elements in the set.

source

fn size(&self) -> u64

Return the size of the domain of the set.

Must be at least 1 greater than the largest element in the set.

Implementors§