pub trait SliceFind<T: PartialEq>: AsRef<[T]> {
// Provided methods
fn find(&self, needle: impl AsRef<[T]>) -> Option<usize> { ... }
fn contains(&self, needle: impl AsRef<[T]>) -> bool { ... }
}Provided Methods§
fn find(&self, needle: impl AsRef<[T]>) -> Option<usize>
fn contains(&self, needle: impl AsRef<[T]>) -> bool
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.