Skip to main content

Item

Trait Item 

Source
pub trait Item {
    type Sum: Summary;

    // Required method
    fn summary(&self) -> Self::Sum;
}
Expand description

An item of a Sums and what it adds up to by itself.

Required Associated Types§

Required Methods§

Source

fn summary(&self) -> Self::Sum

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§