pub trait PrefixOp<T> {
    // Required method
    fn operation(t1: T, t2: T) -> T;
}
Expand description

Fenwick tree prefix operator

Required Methods§

source

fn operation(t1: T, t2: T) -> T

Implementors§

source§

impl<T> PrefixOp<T> for SumOpwhere T: Add<Output = T> + Copy + Add,

source§

impl<T: Copy + Ord> PrefixOp<T> for MaxOp