pub fn cost(&self) -> Gas {
        match self {
            ExecutionResult::Failure { cost, .. } => *cost,
            ExecutionResult::Success { cost, .. } => *cost,
        }
    }
/// Returns gas cost of execution regardless of variant.
Returns gas cost of execution regardless of variant.
Returns gas cost of execution regardless of variant .
pub fn cost(&self) -> Gas {
        match self {
            ExecutionResult::Failure { cost, .. } => *cost,
            ExecutionResult::Success { cost, .. } => *cost,
        }
    }
pub fn cost ( & self ) -> Gas { match self { ExecutionResult :: Failure { cost , .. } => * cost , ExecutionResult :: Success { cost , .. } => * cost , } }
Returns gas cost of execution regardless of variant.
Returns gas cost of execution regardless of variant .
&self
&self