[][src]Trait frame_support::weights::WeighData

pub trait WeighData<T> {
    pub fn weigh_data(&self, target: T) -> Weight;
}

Means of weighing some particular kind of data (T).

Required methods

pub 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).

Loading content...

Implementations on Foreign Types

impl<T> WeighData<T> for (Weight, DispatchClass, Pays)[src]

impl<T> WeighData<T> for (Weight, DispatchClass)[src]

impl<T> WeighData<T> for (Weight, Pays)[src]

Loading content...

Implementors

impl<Args, CD, PF> WeighData<Args> for FunctionOf<Weight, CD, PF>[src]

impl<Args, WD, CD, PF> WeighData<Args> for FunctionOf<WD, CD, PF> where
    WD: Fn(Args) -> Weight
[src]

impl<T> WeighData<T> for Weight[src]

Loading content...