Trait CounterCollectionSpec

Source
pub trait CounterCollectionSpec {
    type CounterCollection<C: CounterRepr>: CounterCollection<Spec = Self>;

    // Required method
    fn transform<C1: CounterRepr, C2: CounterRepr>(
        counters: &Self::CounterCollection<C1>,
    ) -> Self::CounterCollection<C2>;
}
Expand description

The specification of a CounterCollection.

Required Associated Types§

Source

type CounterCollection<C: CounterRepr>: CounterCollection<Spec = Self>

The underlying CounterCollection for this specification.

Required Methods§

Source

fn transform<C1: CounterRepr, C2: CounterRepr>( counters: &Self::CounterCollection<C1>, ) -> Self::CounterCollection<C2>

A utility method to transform the underlying counter representation within Self::CounterCollection.

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§