Struct segment_tree::ops::Min
[−]
[src]
pub struct Min;
Each node contains the minimum value in the interval it represents.
Trait Implementations
impl<T: Ord + Copy> Operation<T> for Min[src]
fn combine(a: &T, b: &T) -> T
The operation that is performed to combine two intervals in the segment tree. Read more
fn combine_mut(a: &mut N, b: &N)
Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine. Read more
fn combine_mut2(a: &N, b: &mut N)
Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine. Read more
fn combine_left(a: N, b: &N) -> N
Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut. Read more
fn combine_right(a: &N, b: N) -> N
Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2. Read more
fn combine_both(a: N, b: N) -> N
Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_left. Read more
impl<T: Ord + Copy> CommutativeOperation<T> for Min[src]
impl Identity<u8> for Min[src]
impl Identity<u16> for Min[src]
impl Identity<u32> for Min[src]
impl Identity<u64> for Min[src]
impl Identity<i8> for Min[src]
impl Identity<i16> for Min[src]
impl Identity<i32> for Min[src]
impl Identity<i64> for Min[src]
impl Identity<usize> for Min[src]
impl Identity<isize> for Min[src]
impl<T> Identity<Wrapping<T>> for Min where
Min: Identity<T>, [src]
Min: Identity<T>,