pub trait HaystackOf<'a, I: HaystackItem>: Haystack<'a, Slice: HaystackSlice<'a, Item = I>> { }Expand description
This trait is exactly the same as Haystack, except that it simplifies bounds by requiring
that Item = I.
It is also blanket-implemented for all types that implement Haystack<Item = I>.
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.