Trait sp_runtime::traits::Convert [−][src]
pub trait Convert<A, B> { fn convert(a: A) -> B; }
Expand description
Extensible conversion trait. Generic over both source and destination types.
Required methods
Implementations on Foreign Types
Implementors
impl<T: Config> Convert<<T as Config>::AccountId, Option<<T as Config>::AccountId>> for StashOf<T>
impl<T: Config> Convert<<T as Config>::AccountId, Option<<T as Config>::AccountId>> for StashOf<T>
impl<T: Config> Convert<<T as Config>::AccountId, Option<Exposure<<T as Config>::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>>> for ExposureOf<T>
impl<T: Config> Convert<<T as Config>::AccountId, Option<Exposure<<T as Config>::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>>> for ExposureOf<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>,
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>,
impl<T> Convert<u64, <<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance> for Pallet<T> where
T: Config,
<<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance: FixedPointOperand,
impl<T> Convert<u64, <<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance> for Pallet<T> where
T: Config,
<<T as Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance: FixedPointOperand,