pub trait Needle {
const SIZE: Option<usize>;
// Required method
fn as_bytes(&self) -> &[u8] ⓘ;
}Expand description
Needle that can be searched for within a haystack. It allows specialized searcher implementations for needle sizes known at compile time.
Required Associated Constants§
Required Methods§
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.