Item

Trait Item 

Source
pub trait Item: Clone {
    type Summary: Summary;

    // Required method
    fn summary(
        &self,
        cx: <Self::Summary as Summary>::Context<'_>,
    ) -> Self::Summary;
}
Expand description

An item that can be stored in a SumTree

Must be summarized by a type that implements Summary

Required Associated Types§

Required Methods§

Source

fn summary(&self, cx: <Self::Summary as Summary>::Context<'_>) -> Self::Summary

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§