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

Hack trait needed to avoid lifetime issues when using Pattern and DoubleEndedSearcher as bounds directly. Used by StringExtensions::trim_matches_in_place.

Required Associated Types§

Implementors§

source§

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

§

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