pub trait StrPredicate<B: FallibleBool>: FnMut(&str) -> B + Sized {
// Provided method
fn expecting(self, len: usize) -> SizedStrPredicate<Self, B> { ... }
}Expand description
Convert FnMut(&str) -> FalliableBool into a pattern
by specifying a look-ahead length.
Provided Methods§
Sourcefn expecting(self, len: usize) -> SizedStrPredicate<Self, B>
fn expecting(self, len: usize) -> SizedStrPredicate<Self, B>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.