pub fn single_input(&self, expr: &MirScalarExpr) -> Option<usize> {
        let mut inputs = self.lookup_inputs(expr);
        if let Some(first_input) = inputs.next() {
            if inputs.next().is_none() {
                return Some(first_input);
            }
        }
        None
    }
/// Returns the index of the only input referenced in the given expression.
Returns the index of the only input referenced in the given expression.
Returns the index of the only input referenced in the given expression .
pub fn single_input(&self, expr: &MirScalarExpr) -> Option<usize> {
        let mut inputs = self.lookup_inputs(expr);
        if let Some(first_input) = inputs.next() {
            if inputs.next().is_none() {
                return Some(first_input);
            }
        }
        None
    }
pub fn single_input ( & self , expr : & MirScalarExpr ) -> Option < usize > { let mut inputs = self . lookup_inputs ( expr ) ; if let Some ( first_input ) = inputs . next ( ) { if inputs . next ( ) . is_none ( ) { return Some ( first_input ) ; } } None }
Returns the index of the only input referenced in the given expression.
Returns the index of the only input referenced in the given expression .
&self
expr
&MirScalarExpr
&self
expr
&MirScalarExpr