Summary

Trait Summary 

Source
pub trait Summary: Clone {
    type Context<'a>: Copy;

    // Required methods
    fn zero<'a>(cx: Self::Context<'a>) -> Self;
    fn add_summary<'a>(&mut self, summary: &Self, cx: Self::Context<'a>);
}
Expand description

A type that describes the Sum of all Items in a subtree of the SumTree

Each Summary type can have multiple Dimensions that it measures, which can be used to navigate the tree

Required Associated Types§

Required Methods§

Source

fn zero<'a>(cx: Self::Context<'a>) -> Self

Source

fn add_summary<'a>(&mut self, summary: &Self, cx: Self::Context<'a>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§