Skip to main content

compare_into

Function compare_into 

Source
pub fn compare_into<T: Element>(
    op: CompareOp,
    x: &[T],
    y: &[T],
    out: &mut [bool],
)
Expand description

out[i] = op(x[i], y[i]) for a comparison, where a slice of length 1 stands for every element.

ยงPanics

Panics if a length is neither 1 nor the length of out.