Function try_get_unchecked

pub(in ::iter::adapters) unsafe fn try_get_unchecked<I>(it: &mut I, idx: usize) -> I::Item
where
    I: Iterator,

Like Iterator::__iterator_get_unchecked, but doesn't require the compiler to know that U: TrustedRandomAccess.

Safety

Same requirements calling get_unchecked directly.