pub trait UsableReversePattern<'a>where
    Self: Pattern<'a, Searcher = Self::Searcher>,{
    type Searcher: ReverseSearcher<'a>;
}
Available on crate feature nightly only.
Expand description

Hack trait needed to avoid lifetime issues when using Pattern and ReverseSearcher as bounds directly. Used by StringExtensions::strip_suffix_in_place and StringExtensions::trim_end_matches_in_place.

Required Associated Types§

Implementors§

source§

impl<'a, T> UsableReversePattern<'a> for Twhere T: ?Sized + Pattern<'a>, <T as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

§

type Searcher = <T as Pattern<'a>>::Searcher