pub trait UpdateSlice: Stream {
// Required method
fn update_slice(self, inner: Self::Slice) -> Self;
}
Expand description
Convert a Stream
into an appropriate Output
type
Required Methods§
Sourcefn update_slice(self, inner: Self::Slice) -> Self
fn update_slice(self, inner: Self::Slice) -> Self
Convert an Output
type to be used as Stream
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.
Implementations on Foreign Types§
Source§impl UpdateSlice for &str
impl UpdateSlice for &str
fn update_slice(self, inner: Self::Slice) -> Self
Source§impl<T> UpdateSlice for &[T]
impl<T> UpdateSlice for &[T]
fn update_slice(self, inner: Self::Slice) -> Self
Implementors§
impl UpdateSlice for &BStr
impl UpdateSlice for &Bytes
impl<I> UpdateSlice for LocatingSlice<I>where
I: UpdateSlice,
impl<I> UpdateSlice for Partial<I>where
I: UpdateSlice,
impl<I, E> UpdateSlice for Recoverable<I, E>
Available on crate features
unstable-recover
and std
only.