pub struct ScheduleRules<'a> { /* private fields */ }
Expand description
This type provides real gas cost of instructions on pallet-gear.
Trait Implementations§
Source§impl<'a> Rules for ScheduleRules<'a>
impl<'a> Rules for ScheduleRules<'a>
Source§fn instruction_cost(&self, instruction: &Instruction) -> Option<u32>
fn instruction_cost(&self, instruction: &Instruction) -> Option<u32>
Returns the cost for the passed
instruction
. Read moreSource§fn memory_grow_cost(&self) -> MemoryGrowCost
fn memory_grow_cost(&self) -> MemoryGrowCost
Returns the costs for growing the memory using the
memory.grow
instruction. Read moreSource§fn call_per_local_cost(&self) -> u32
fn call_per_local_cost(&self) -> u32
A surcharge cost to calling a function that is added per local variable of the function.
Auto Trait Implementations§
impl<'a> Freeze for ScheduleRules<'a>
impl<'a> RefUnwindSafe for ScheduleRules<'a>
impl<'a> Send for ScheduleRules<'a>
impl<'a> Sync for ScheduleRules<'a>
impl<'a> Unpin for ScheduleRules<'a>
impl<'a> UnwindSafe for ScheduleRules<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more