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
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<'a> UpdateSlice for &'a str
impl<'a> UpdateSlice for &'a str
fn update_slice(self, inner: Self::Slice) -> Self
source§impl<'a, T> UpdateSlice for &'a [T]
impl<'a, T> UpdateSlice for &'a [T]
fn update_slice(self, inner: Self::Slice) -> Self
Implementors§
impl<'a> UpdateSlice for &'a BStr
impl<'a> UpdateSlice for &'a Bytes
impl<I> UpdateSlice for Located<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.