Skip to main content

nekolib/traits/
find_nth.rs

1//! $n$ 番目の出現位置クエリ。
2
3use std::ops::RangeBounds;
4
5/// $n$ 番目の出現位置クエリ。
6pub trait FindNth<I> {
7    fn find_nth(
8        &self,
9        range: impl RangeBounds<usize>,
10        value: I,
11        n: usize,
12    ) -> Option<usize>;
13}