Trait segment_tree::ops::Identity [] [src]

pub trait Identity<N> {
    fn identity() -> N;
}

A trait that specifies that this type has an identity under this operation.

An identity must satisfy combine(a, id) = a and combine(id, a) = a.

Required Methods

Returns any identity.

Implementors