Trait fenwick_bit_tree::FenwickTreeValue

source ·
pub trait FenwickTreeValue: Default + Clone + PartialEq {
    // Required methods
    fn store_value(&mut self, other: &Self);
    fn substract(self, other: Self) -> Self;
}
Expand description

Types that implement that trait can be stored and aggregated within Fenwick tree.

Required Methods§

source

fn store_value(&mut self, other: &Self)

source

fn substract(self, other: Self) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> FenwickTreeValue for T
where T: Default + Copy + AddAssign + Sub<Output = Self> + PartialEq,