cfg_select! {
all(
feature = "multithread",
not(all(target_os = "macos", feature = "apple-sandbox")),
) => {
#[cfg(all(
feature = "multithread",
not(all(target_os = "macos", feature = "apple-sandbox")),
))]
#[allow(dead_code)]
pub(crate) fn into_iter<T>(val: T) -> T::Iter
where
T: rayon::iter::IntoParallelIterator,
{
val.into_par_iter()
}
}
_ => {
#[allow(dead_code)]
pub(crate) fn into_iter<T>(val: T) -> T::IntoIter
where
T: IntoIterator,
{
val.into_iter()
}
}
}