Skip to main content

U64Set

Type Alias U64Set 

Source
pub type U64Set = OxiHashSet<u64>;
Expand description

A set of u64 values, useful for tracking metavariable IDs.

Aliased Type§

pub struct U64Set { /* private fields */ }

Implementations§

Source§

impl U64Set

Source

pub fn min_elem(&self) -> Option<u64>

Return the minimum element if non-empty.

Source

pub fn max_elem(&self) -> Option<u64>

Return the maximum element if non-empty.

Source

pub fn sum(&self) -> u64

Return the sum of all elements.

Source

pub fn covers_range(&self, lo: u64, hi: u64) -> bool

Check whether the range lo..=hi is completely covered.