Struct treez::seg::TreeSeg [−][src]
pub struct TreeSeg<T, V> where
T: Ord + Default + Clone,
V: Clone + Hash + Eq, { /* fields omitted */ }
Methods
impl<T, V> TreeSeg<T, V> where
T: Ord + Default + Clone,
V: Clone + Hash + Eq,
[src]
impl<T, V> TreeSeg<T, V> where
T: Ord + Default + Clone,
V: Clone + Hash + Eq,
pub fn init(input: &[(T, T, V)]) -> TreeSeg<T, V>
[src]
pub fn init(input: &[(T, T, V)]) -> TreeSeg<T, V>
builds a tree using input segments
pub fn len_nodes(&self) -> usize
[src]
pub fn len_nodes(&self) -> usize
get total number of nodes in tree
pub fn get_segs_from_bound(&self, bound: (T, T)) -> Vec<V>
[src]
pub fn get_segs_from_bound(&self, bound: (T, T)) -> Vec<V>
get a list of segments that is contained in the bound