Skip to main content

GroupedValue

Trait GroupedValue 

Source
pub trait GroupedValue: Debug + Clone {
    type Item;

    // Required methods
    fn new() -> Self;
    fn merge(&mut self, value: Self::Item);
}

Required Associated Types§

Required Methods§

Source

fn new() -> Self

Source

fn merge(&mut self, value: Self::Item)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl GroupedValue for Vec<(usize, usize)>

Source§

type Item = usize

Source§

fn new() -> Vec<(usize, usize)>

Source§

fn merge(&mut self, new_value: usize)

Implementors§