pub trait Convert<A, B> {
    fn convert(a: A) -> B;
}
Expand description

Extensible conversion trait. Generic over both source and destination types.

Required Methods§

Make conversion.

Implementations on Foreign Types§

Implementors§

impl<T> Convert<T, Option<T>> for IdentityCollator

impl<T: Config> Convert<<T as Config>::AccountId, Option<<T as Config>::AccountId>> for StashOf<T>

impl<T, S, V, M> Convert<FixedU128, FixedU128> for TargetedFeeAdjustment<T, S, V, M>where
    T: Config,
    S: Get<Perquintill>,
    V: Get<Multiplier>,
    M: Get<Multiplier>,