find_amp_pipe_operands

Function find_amp_pipe_operands 

Source
fn find_amp_pipe_operands(s: &str) -> Option<(usize, usize, usize, char)>
Expand description

Locate the first & or | in s that is a single (non-&& / non-||, non-&= / non-|=) operator, plus the byte offsets of its left and right operand spans. Returns None if no eligible operator remains or either operand boundary can’t be resolved.