feat: implement DoubleEndedSearcher
for CharArray[Ref]Searcher
This commit is contained in:
parent
97d328012b
commit
c6ed532bef
1 changed files with 4 additions and 0 deletions
|
@ -806,6 +806,8 @@ unsafe impl<'a, const N: usize> ReverseSearcher<'a> for CharArraySearcher<'a, N>
|
||||||
searcher_methods!(reverse);
|
searcher_methods!(reverse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a, const N: usize> DoubleEndedSearcher<'a> for CharArraySearcher<'a, N> {}
|
||||||
|
|
||||||
/// Searches for chars that are equal to any of the [`char`]s in the array.
|
/// Searches for chars that are equal to any of the [`char`]s in the array.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
|
@ -826,6 +828,8 @@ unsafe impl<'a, 'b, const N: usize> ReverseSearcher<'a> for CharArrayRefSearcher
|
||||||
searcher_methods!(reverse);
|
searcher_methods!(reverse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a, 'b, const N: usize> DoubleEndedSearcher<'a> for CharArrayRefSearcher<'a, 'b, N> {}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Impl for &[char]
|
// Impl for &[char]
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue