pub struct ArithmeticOnlyChecker<'a> { /* private fields */ }
Expand description
A static-analysis pass that checks whether or not a proposed cost-function defining contract is allowable. Cost-function defining contracts may not use contract-call, any database operations, traits, or iterating operations (e.g., list operations)
Implementations§
§impl<'a> ArithmeticOnlyChecker<'a>
impl<'a> ArithmeticOnlyChecker<'a>
pub fn check_contract_cost_eligible(contract_analysis: &mut ContractAnalysis)
pub fn run(contract_analysis: &ContractAnalysis) -> Result<(), Error>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ArithmeticOnlyChecker<'a>
impl<'a> Send for ArithmeticOnlyChecker<'a>
impl<'a> Sync for ArithmeticOnlyChecker<'a>
impl<'a> Unpin for ArithmeticOnlyChecker<'a>
impl<'a> UnwindSafe for ArithmeticOnlyChecker<'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