datafusion_common::utils

Function find_indices

Source
pub fn find_indices<T: PartialEq, S: Borrow<T>>(
    items: &[T],
    targets: impl IntoIterator<Item = S>,
) -> Result<Vec<usize>>
Expand description

Find indices of each element in targets inside items. If one of the elements is absent in items, returns an error.