[][src]Trait pallet_offences_benchmarking::IdTupleConvert

pub trait IdTupleConvert<T: HistoricalTrait + OffencesTrait> {
    fn convert(
        id: IdentificationTuple<T>
    ) -> <T as OffencesTrait>::IdentificationTuple; }

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

Required methods

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

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

Loading content...

Implementors

impl<T: HistoricalTrait + OffencesTrait> IdTupleConvert<T> for T where
    <T as OffencesTrait>::IdentificationTuple: From<IdentificationTuple<T>>, 
[src]

Loading content...