/// Return true if the plan spends exactly `spendable_tokens`.
Return true if the plan spends exactly `spendable_tokens`.
Return true if the plan spends exactly ` spendable_tokens ` .
pub fn verify(&self, spendable_tokens: i64) -> bool {
        match *self {
            Plan::Pay(ref payment) | Plan::After(_, ref payment) => {
                payment.tokens == spendable_tokens
            }
            Plan::Race(ref a, ref b) => {
                a.1.tokens == spendable_tokens && b.1.tokens == spendable_tokens
            }
        }
    }
pub fn verify ( & self , spendable_tokens : i64 ) -> bool { match * self { Plan :: Pay ( ref payment ) | Plan :: After ( _ , ref payment ) => { payment . tokens == spendable_tokens } Plan :: Race ( ref a , ref b ) => { a . 1 . tokens == spendable_tokens && b . 1 . tokens == spendable_tokens } } }
Return true if the plan spends exactly `spendable_tokens`.
Return true if the plan spends exactly ` spendable_tokens ` .
&self
spendable_tokens
i64