pub trait WeightInfo {
// Required methods
fn record() -> Weight;
fn erase() -> Weight;
}Expand description
Weight functions needed for pallet_robonomics_datalog.
Required Methods§
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 ()
impl WeightInfo for ()
Source§fn record() -> Weight
fn record() -> Weight
Storage: Timestamp::Now (r:1 w:0)
Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: Datalog::DatalogIndex (r:1 w:1)
Proof: Datalog::DatalogIndex (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
Storage: Datalog::DatalogItem (r:0 w:1)
Proof: Datalog::DatalogItem (max_values: None, max_size: Some(570), added: 3045, mode: MaxEncodedLen)
Source§fn erase() -> Weight
fn erase() -> Weight
Storage: Datalog::DatalogIndex (r:1 w:1)
Proof: Datalog::DatalogIndex (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
Storage: Datalog::DatalogItem (r:0 w:127)
Proof: Datalog::DatalogItem (max_values: None, max_size: Some(570), added: 3045, mode: MaxEncodedLen)