Trait aoc::IterUnwrap

source ·
pub trait IterUnwrap {
    type Item;

    // Required methods
    fn next_uw(&mut self) -> Self::Item;
    fn collect_n<const N: usize>(&mut self) -> [Self::Item; N];
}
Expand description

Provides methods on iterators to reduce allocations and .unwrap() calls when success is assumed.

Required Associated Types§

Required Methods§

source

fn next_uw(&mut self) -> Self::Item

source

fn collect_n<const N: usize>(&mut self) -> [Self::Item; N]

Implementors§

source§

impl<I> IterUnwrap for Iwhere I: Iterator,

§

type Item = <I as Iterator>::Item