pub struct ArithmeticOnlyChecker();
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
sourceimpl ArithmeticOnlyChecker
impl ArithmeticOnlyChecker
pub fn check_contract_cost_eligible(contract_analysis: &mut ContractAnalysis)
pub fn run(contract_analysis: &ContractAnalysis) -> Result<(), Error>
Auto Trait Implementations
impl RefUnwindSafe for ArithmeticOnlyChecker
impl Send for ArithmeticOnlyChecker
impl Sync for ArithmeticOnlyChecker
impl Unpin for ArithmeticOnlyChecker
impl UnwindSafe for ArithmeticOnlyChecker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more