Struct segment_tree::ops::Max [] [src]

pub struct Max;

Each node contains the maximum value in the interval it represents.

Trait Implementations

impl<T: Ord + Copy> Operation<T> for Max
[src]

The operation that is performed to combine two intervals in the segment tree. Read more

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine. Read more

Replace the value in a with combine(a, b). This function exists to allow certain optimizations and by default simply calls combine. Read more

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut. Read more

Must return the same as combine. This function exists to allow certain optimizations and by default simply calls combine_mut2. Read more

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 Max
[src]

impl Identity<u8> for Max
[src]

Returns any identity.

impl Identity<u16> for Max
[src]

Returns any identity.

impl Identity<u32> for Max
[src]

Returns any identity.

impl Identity<u64> for Max
[src]

Returns any identity.

impl Identity<i8> for Max
[src]

Returns any identity.

impl Identity<i16> for Max
[src]

Returns any identity.

impl Identity<i32> for Max
[src]

Returns any identity.

impl Identity<i64> for Max
[src]

Returns any identity.

impl Identity<usize> for Max
[src]

Returns any identity.

impl Identity<isize> for Max
[src]

Returns any identity.

impl<T> Identity<Wrapping<T>> for Max where
    Max: Identity<T>, 
[src]

Returns any identity.