pub fn has_precondition_failure(&self) -> bool {
        match self {
            ExecutionResult::Failure {
                cost,
                execution_journal,
                ..
            } => cost.value() == 0.into() && execution_journal.is_empty(),
            ExecutionResult::Success { .. } => false,
        }
    }
/// Returns `true` if this is a precondition failure.
///
/// Precondition variant is further described as an execution failure which does not have any
/// effects, and has a gas cost of 0.
Returns `true` if this is a precondition failure.
Precondition variant is further described as an execution failure which does not have any
effects, and has a gas cost of 0.
Returns ` true ` if this is a precondition failure . Precondition variant is further described as an execution failure which does not have any effects and has a gas cost of 0 .
pub fn has_precondition_failure(&self) -> bool {
        match self {
            ExecutionResult::Failure {
                cost,
                execution_journal,
                ..
            } => cost.value() == 0.into() && execution_journal.is_empty(),
            ExecutionResult::Success { .. } => false,
        }
    }
pub fn has_precondition_failure ( & self ) -> bool { match self { ExecutionResult :: Failure { cost , execution_journal , .. } => cost . value ( ) == 0 . into ( ) && execution_journal . is_empty ( ) , ExecutionResult :: Success { .. } => false , } }
Returns `true` if this is a precondition failure.
Returns ` true ` if this is a precondition failure .
&self
&self