Trait WeightInfo

Source
pub trait WeightInfo {
    // Required method
    fn transact(btc_tx: &Transaction) -> Weight;
}
Expand description

Weight functions needed for pallet_bitcoin.

Required Methods§

Source

fn transact(btc_tx: &Transaction) -> Weight

Calculates the weight of Call::transact.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WeightInfo for ()

Source§

fn transact(_: &Transaction) -> Weight

Implementors§