/// Returns true if the given operand can potentially have additional
/// parameters.
Returns true if the given operand can potentially have additional
parameters.
Returns true if the given operand can potentially have additional parameters .
pub fn operand_has_additional_params(
    operand: &structs::Operand,
    kinds: &[structs::OperandKind],
) -> bool {
    kinds
        .iter()
        .find(|kind| kind.kind == operand.kind)
        .map_or(false, |kind| has_additional_params(kind))
}
pub fn operand_has_additional_params ( operand : & structs :: Operand , kinds : & [ structs :: OperandKind ] , ) -> bool { kinds . iter ( ) . find ( | kind | kind . kind == operand . kind ) . map_or ( false , | kind | has_additional_params ( kind ) ) }
Returns true if the given operand can potentially have additional
parameters.
Returns true if the given operand can potentially have additional parameters .
operand
&structs::Operand
kinds
&[structs::OperandKind]