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§

Compute the fee for the specified weight.

This fee is already adjusted by the per block fee adjustment factor and is therefore the share that the weight contributes to the overall fee of a transaction. It is mainly for informational purposes and not used in the actual fee calculation.

Implementors§