winnow::stream

Trait UpdateSlice

Source
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§

Source

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<'a> UpdateSlice for &'a str

Source§

fn update_slice(self, inner: Self::Slice) -> Self

Source§

impl<'a, T> UpdateSlice for &'a [T]
where T: Clone + Debug,

Source§

fn update_slice(self, inner: Self::Slice) -> Self

Implementors§

Source§

impl<'a> UpdateSlice for &'a BStr

Source§

impl<'a> UpdateSlice for &'a Bytes

Source§

impl<I> UpdateSlice for Located<I>
where I: UpdateSlice,

Source§

impl<I> UpdateSlice for Partial<I>
where I: UpdateSlice,

Source§

impl<I, S> UpdateSlice for Stateful<I, S>
where I: UpdateSlice, S: Clone + Debug,