Trait grove::data::Acts[][src]

pub trait Acts<V> {
    fn act_inplace(&self, object: &mut V);

    fn act(&self, object: V) -> V { ... }
}
Expand description

Trait representation actions on a type V. If A: Acts<V> that means that given any action: A, we can apply it to any val: V. This trait is used to represent the actions on values and summaries used by segment trees.

Morally Action should be a supertrait of this trait.

Required methods

Act on a value in-place.

Provided methods

Act on a value and return the result.

Implementors