pub(crate) fn assignment(&self) -> Result<Option<(SignedInteger, Scalar)>, VMError> {
        match (self.qty.assignment(), self.flv.assignment()) {
            (None, None) => Ok(None),
            (Some(ScalarWitness::Integer(q)), Some(ScalarWitness::Scalar(f))) => Ok(Some((q, f))),
            (_, _) => return Err(VMError::InconsistentWitness),
        }
    }
/// Returns a (qty,flavor) assignment to a value, or None if both fields are unassigned.
/// Fails if the assigment is inconsistent.
Returns a (qty,flavor) assignment to a value, or None if both fields are unassigned.
Fails if the assigment is inconsistent.
Returns a ( qty flavor ) assignment to a value or None if both fields are unassigned . Fails if the assigment is inconsistent .
pub(crate) fn assignment(&self) -> Result<Option<(SignedInteger, Scalar)>, VMError> {
        match (self.qty.assignment(), self.flv.assignment()) {
            (None, None) => Ok(None),
            (Some(ScalarWitness::Integer(q)), Some(ScalarWitness::Scalar(f))) => Ok(Some((q, f))),
            (_, _) => return Err(VMError::InconsistentWitness),
        }
    }
pub ( crate ) fn assignment ( & self ) -> Result < Option < ( SignedInteger , Scalar ) > , VMError > { match ( self . qty . assignment ( ) , self . flv . assignment ( ) ) { ( None , None ) => Ok ( None ) , ( Some ( ScalarWitness :: Integer ( q ) ) , Some ( ScalarWitness :: Scalar ( f ) ) ) => Ok ( Some ( ( q , f ) ) ) , ( _ , _ ) => return Err ( VMError :: InconsistentWitness ) , } }
Returns a (qty,flavor) assignment to a value, or None if both fields are unassigned.
Returns a ( qty flavor ) assignment to a value or None if both fields are unassigned .
&self
&self