referrerpolicy=no-referrer-when-downgrade

Trait IdTupleConvert

Source
pub trait IdTupleConvert<T: HistoricalConfig + OffencesConfig> {
    // Required method
    fn convert(
        id: IdentificationTuple<T>,
    ) -> <T as OffencesConfig>::IdentificationTuple;
}
Expand description

A helper trait to make sure we can convert IdentificationTuple coming from historical and the one required by offences.

Required Methods§

Source

fn convert( id: IdentificationTuple<T>, ) -> <T as OffencesConfig>::IdentificationTuple

Convert identification tuple from historical trait to the one expected by offences.

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§

Source§

impl<T: HistoricalConfig + OffencesConfig> IdTupleConvert<T> for T
where <T as OffencesConfig>::IdentificationTuple: From<IdentificationTuple<T>>,