UnionFindRange

Type Alias UnionFindRange 

Source
pub type UnionFindRange = UnionFind<usize, Vec<usize>, Vec<usize>>;
Expand description

UnionFind with keys in range 0..n.

Aliased Type§

pub struct UnionFindRange { /* private fields */ }

Implementations§

Source§

impl UnionFindRange

Source

pub fn with_keys_in_range(range: RangeTo<usize>) -> Self

Creates a new UnionFindRange with keys in range.

Source

pub fn reset(&mut self)

Reset the struct putting each key in it’s own set.