pub trait OwnedHaystackable<I>where
I: HaystackItem,{
type Hay<'a>: HaystackOf<'a, I>
where Self: 'a;
// Required methods
fn replace_range<'a>(
&mut self,
range: Range<usize>,
with: <Self::Hay<'a> as HaystackIter<'a>>::Slice,
)
where Self: 'a;
fn as_haystack<'a>(&'a self) -> Self::Hay<'a>;
fn as_slice<'a>(&'a self) -> <Self::Hay<'a> as HaystackIter<'a>>::Slice;
fn len(&self) -> usize;
}Expand description
Required Associated Types§
type Hay<'a>: HaystackOf<'a, I> where Self: 'a
Required Methods§
fn replace_range<'a>(
&mut self,
range: Range<usize>,
with: <Self::Hay<'a> as HaystackIter<'a>>::Slice,
)where
Self: 'a,
fn as_haystack<'a>(&'a self) -> Self::Hay<'a>
fn as_slice<'a>(&'a self) -> <Self::Hay<'a> as HaystackIter<'a>>::Slice
fn len(&self) -> usize
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.