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

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

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

Required methods

fn weigh_data(&self, target: T) -> Weight

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

Implementors

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

Loading content...