Trait frame_support::weights::WeighData [−][src]
Means of weighing some particular kind of data (T
).
Required methods
fn weigh_data(&self, target: T) -> Weight
[src]
Weigh the data T
given by target
. When implementing this for a dispatchable, T
will be
a tuple of all arguments given to the function (except origin).
Implementations on Foreign Types
impl<T> WeighData<T> for (Weight, DispatchClass, Pays)
[src]
fn weigh_data(&self, _: T) -> Weight
[src]
impl<T> WeighData<T> for (Weight, DispatchClass)
[src]
fn weigh_data(&self, _: T) -> Weight
[src]
impl<T> WeighData<T> for (Weight, Pays)
[src]
fn weigh_data(&self, _: T) -> Weight
[src]
Implementors
impl<Args, CD, PF> WeighData<Args> for FunctionOf<Weight, CD, PF>
[src]
fn weigh_data(&self, _: Args) -> Weight
[src]
impl<Args, WD, CD, PF> WeighData<Args> for FunctionOf<WD, CD, PF> where
WD: Fn(Args) -> Weight,
[src]
WD: Fn(Args) -> Weight,